Borderou de evaluare (job #1298790)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 23 decembrie 2014 09:31:26
Problema Sarac Sau Rege Status done
Runda Happy Birthday Infoarena 2014 Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:35:54: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short unsigned int*’ [-Wformat=] fscanf(fin, "%d", &arr[i][j]); ^ user.cpp:26: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:35: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:42: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:44:92: warning: array subscript is below array bounds [-Warray-bounds] else fprintf(fout, "%d\n", max(arr[log(y-x)][x-1], arr[log(y-x)][y - p[log(y-x)] ] )); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK10
20ms316kbOK10
3700ms560kbOK10
4652ms328kbOK10
512msDepăşitMemory limit exceeded.0
612msDepăşitMemory limit exceeded.0
716msDepăşitMemory limit exceeded.0
812msDepăşitMemory limit exceeded.0
912msDepăşitMemory limit exceeded.0
1016msDepăşitMemory limit exceeded.0
Punctaj total40

Ceva nu functioneaza?