Borderou de evaluare (job #4393)

Utilizator avatar andreea_zaharia Zaharia Andreea andreea_zaharia IP ascuns
Problemă Paint (clasa a 7-a) Compilator cpp
Rundă Olimpiada pe Scoala 2012, Clasa a 7-a Status evaluat
Dată 17 dec. 2012 11:25:42 Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:24:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] 24 | printf("%d\n", x%1001); | ~^ ~~~~~~ | | | | int long long int | %lld main.cpp:6:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 6 | freopen("paint.in","r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 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.out","w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | scanf("%d%d", &n,&m); | ~~~~~^~~~~~~~~~~~~~~ main.cpp:14:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | scanf("%d", &k); | ~~~~~^~~~~~~~~~ main.cpp:18:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | scanf("%d", &q); | ~~~~~^~~~~~~~~~ main.cpp:21:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | scanf("%d%d%d%d", &l1, &c1,&l2,&c2); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 0 ms 292 kb OK 20
2 1 ms 548 kb Incorect 0
3 2 ms 548 kb Incorect 0
4 68 ms 3328 kb Incorect 0
5 160 ms 4112 kb Incorect 0
Punctaj total 20