Borderou de evaluare (job #734978)

Utilizator avatar TheodorMinea MineaTheodor TheodorMinea IP ascuns
Problemă Cufar (clasa a 9-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 2 oct. 2023 11:12:25 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:12:18: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'long int*' [-Wformat=] 12 | scanf("%d %lld",&p,&n); | ~~~^ ~~ | | | | | long int* | long long int* | %ld main.cpp:15:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=] 15 | scanf("%d%d",&l,&c); | ~^ ~~ | | | | int* long int* | %ld main.cpp:15:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] 15 | scanf("%d%d",&l,&c); | ~^ ~~ | | | | int* long int* | %ld main.cpp:30:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=] 30 | scanf("%d%d",&j,&c); | ~^ ~~ | | | | int* long int* | %ld main.cpp:30:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=] 30 | scanf("%d%d",&j,&c); | ~^ ~~ | | | | int* long int* | %ld main.cpp:10:13: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | freopen("cufar.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:11:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | freopen("cufar.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | scanf("%d %lld",&p,&n); | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | scanf("%d%d",&l,&c); | ~~~~~^~~~~~~~~~~~~~ main.cpp:30:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 30 | scanf("%d%d",&j,&c); | ~~~~~^~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 199 ms 4173 kb Corect 2
2 237 ms 4177 kb Corect 8
3 194 ms 4177 kb Corect 4
4 189 ms 4169 kb Corect 4
5 239 ms 4177 kb Corect 5
6 229 ms 4177 kb Corect 5
7 238 ms 4173 kb Corect 3
8 239 ms 4173 kb Corect 3
9 239 ms 4177 kb Corect 3
10 239 ms 4177 kb Corect 3
11 239 ms 4177 kb Corect 3
12 254 ms 4440 kb Corect 3
13 269 ms 4702 kb Corect 4
14 308 ms 4964 kb Corect 4
15 434 ms 6012 kb Corect 4
16 599 ms 7061 kb Corect 4
17 918 ms 8372 kb Corect 9
18 1009 ms 8110 kb Corect 9
19 986 ms 8114 kb Corect 10
20 1009 ms 8110 kb Corect 10
Punctaj total 100