Borderou de evaluare (job #1214932)

Utilizator smaraldaSmaranda Dinu smaralda Data 31 iulie 2014 18:59:29
Problema Dreptunghiuri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool rectangle(int, int, int&, int&)’: user.cpp:24:15: warning: unused variable ‘newi’ [-Wunused-variable] int i, j, newi, newj, k; ^ user.cpp:24:21: warning: unused variable ‘newj’ [-Wunused-variable] int i, j, newi, newj, k; ^ user.cpp:24:27: warning: unused variable ‘k’ [-Wunused-variable] int i, j, newi, newj, k; ^ user.cpp: In function ‘int main()’: user.cpp:77:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%d", &a[i][j]); ^ user.cpp:72:21: warning: unused variable ‘i1’ [-Wunused-variable] int n, m, i, j, i1, j1; ^ user.cpp:72:25: warning: unused variable ‘j1’ [-Wunused-variable] int n, m, i, j, i1, j1; ^ user.cpp:70:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dreptunghiuri2.in", "r", stdin); ^ user.cpp:71:47: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dreptunghiuri2.out", "w", stdout); ^ user.cpp:74:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:77:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms468kbOK!10
28ms628kbOK!10
344ms1248kbOK!10
424ms1256kbOK!10
5172ms2240kbOK!10
6168ms2224kbOK!10
74ms600kbOK!10
80ms468kbOK!10
9380ms2264kbOK!10
100ms292kbOK!10
Punctaj total100

Ceva nu functioneaza?