Pagini recente » Borderou de evaluare (job #1079266) | Borderou de evaluare (job #1841259) | Borderou de evaluare (job #2965004) | Borderou de evaluare (job #1662837) | Borderou de evaluare (job #1177139)
Borderou de evaluare (job #1177139)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(f_in, "%d", t);
^
user.cpp:25:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(f_in, "%d %d", n, k);
^
user.cpp:25:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=]
user.cpp:28:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(f_in, "%d", numbers[i]);
^
user.cpp:35:9: warning: unused variable ‘nr_sol’ [-Wunused-variable]
bool nr_sol = 1;
^
user.cpp:19:23: warning: ‘t’ is used uninitialized in this function [-Wuninitialized]
fscanf(f_in, "%d", t);
^
user.cpp:26:27: warning: ‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int *numbers = new int[n];
^
user.cpp:25:30: warning: ‘k’ may be used uninitialized in this function [-Wmaybe-uninitialized]
fscanf(f_in, "%d %d", n, k);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 344kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |