Borderou de evaluare (job #143745)

Utilizator avatar BucurelRadu Bucurel Radu BucurelRadu IP ascuns
Problemă Paint (clasa a 7-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 21 apr. 2015 15:43:14 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=] 12 | scanf("%d",&mat[i][j]); | ~^ ~~~~~~~~~~ | | | | | char* | int* | %hhd main.cpp:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 7 | freopen("paint.in","r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | freopen("paint.out","w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | scanf("%d%d",&n, &m); | ~~~~~^~~~~~~~~~~~~~~ main.cpp:12:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | scanf("%d",&mat[i][j]); | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp:22:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | scanf("%d",&q); | ~~~~~^~~~~~~~~ main.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | scanf("%d%d%d%d",&l1,&c1,&l2,&c2); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 0 ms 508 kb OK 20
2 1 ms 764 kb OK 20
3 2 ms 804 kb OK 20
4 72 ms 4732 kb OK 20
5 176 ms 7112 kb OK 20
Punctaj total 100