Borderou de evaluare (job #1246542)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 21 octombrie 2014 11:32:59
Problema Range minimum query Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin, "%d %d", &n, &m); ^ user.cpp:21:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:30:54: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin, "%d", &arr[i][j]); ^ user.cpp:37:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin, "%d%d", &x, &y); ^ user.cpp:37:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:21:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d", &n, &m); ^ user.cpp:30:55: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &arr[i][j]); ^ user.cpp:37:40: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d", &x, &y); ^ user.cpp:38:91: warning: array subscript is below array bounds [-Warray-bounds] fprintf(fout, "%d\n", min(arr[log(y-x)][x-1], arr[log(y-x)][y - power[log(y-x)]])); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms252kbIncorect00
20ms236kbKilled by signal 11(SIGSEGV).00
30ms460kbKilled by signal 11(SIGSEGV).00
416ms3056kbKilled by signal 11(SIGSEGV).00
516ms3060kbKilled by signal 11(SIGSEGV).00
620ms3648kbKilled by signal 11(SIGSEGV).0
724ms5000kbKilled by signal 11(SIGSEGV).00
832ms6256kbKilled by signal 11(SIGSEGV).00
932ms6252kbKilled by signal 11(SIGSEGV).00
1032ms6252kbKilled by signal 11(SIGSEGV).00
Punctaj total0

Ceva nu functioneaza?