Borderou de evaluare (job #1584487)

Utilizator preda.andreiPreda Andrei preda.andrei Data 30 ianuarie 2016 10:39:16
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:110:58: warning: array subscript is above array bounds [-Warray-bounds] if(unghiuriEchivalente(uaux, unghi2) && drum[k][2] == 0) ^ user.cpp:111: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:89: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:89: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:90: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:90: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
10ms468kbPrimul numar corect1
20ms520kbPrimul numar corect1
30ms644kbPrimul numar corect1
48ms1256kbPrimul numar corect1
58ms1544kbPrimul numar corect1
632ms2440kbPrimul numar corect1
70ms892kbPrimul numar corect1
80ms616kbPrimul numar corect1
912ms1712kbPrimul numar corect1
1044ms4344kbPrimul numar corect1
1156ms4344kbPrimul numar corect1
12148ms5664kbOK5
13160ms6620kbPrimul numar corect1
14196ms7392kbPrimul numar corect1
15160ms8256kbPrimul numar corect1
16180ms8260kbPrimul numar corect1
17124ms6624kbPrimul numar corect1
18224ms8268kbPrimul numar corect1
19128ms5648kbPrimul numar corect1
20204ms8260kbPrimul numar corect1
Punctaj total24

Ceva nu functioneaza?