Borderou de evaluare (job #1584486)

Utilizator preda.andreiPreda Andrei preda.andrei Data 30 ianuarie 2016 10:38:13
Problema AI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 24

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^ user.cpp:42:98: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d%d%d%d%d%d%d%d%d", &tx, &ty, &s1x, &s1y, &s2x, &s2y, &r1x, &r1y, &r2x, &r2y); ^ user.cpp:43:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &k); ^ user.cpp:45:36: 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: In function ‘void lee(int, int, int, int)’: user.cpp:107:58: warning: array subscript is above array bounds [-Warray-bounds] if(unghiuriEchivalente(uaux, unghi2) && drum[k][2] == 0) ^ user.cpp:108:22: warning: array subscript is above array bounds [-Warray-bounds] drum[k][2] = mat[x][y].drum; ^ user.cpp: In function ‘int main()’: user.cpp:86:33: warning: array subscript is above array bounds [-Warray-bounds] x = (drum[1][1] >= drum[2][2]) ? drum[1][1] : drum[2][2]; ^ user.cpp:86:30: warning: array subscript is above array bounds [-Warray-bounds] x = (drum[1][1] >= drum[2][2]) ? drum[1][1] : drum[2][2]; ^ user.cpp:87:19: warning: array subscript is above array bounds [-Warray-bounds] y = (drum[1][2] >= drum[2][1]) ? drum[1][2] : drum[2][1]; ^ user.cpp:87:30: warning: array subscript is above array bounds [-Warray-bounds] y = (drum[1][2] >= drum[2][1]) ? drum[1][2] : drum[2][1]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms472kbPrimul numar corect1
20ms516kbPrimul numar corect1
30ms648kbPrimul numar corect1
44ms1256kbPrimul numar corect1
58ms1536kbPrimul numar corect1
620ms2440kbPrimul numar corect1
70ms892kbPrimul numar corect1
80ms620kbPrimul numar corect1
98ms1708kbPrimul numar corect1
1024ms4348kbPrimul numar corect1
1136ms4352kbPrimul numar corect1
12116ms5660kbOK5
13104ms6620kbPrimul numar corect1
14124ms7388kbPrimul numar corect1
1588ms8256kbPrimul numar corect1
1696ms8260kbPrimul numar corect1
1772ms6628kbPrimul numar corect1
18136ms8260kbPrimul numar corect1
1988ms5652kbPrimul numar corect1
20128ms8004kbPrimul numar corect1
Punctaj total24

Ceva nu functioneaza?