Borderou de evaluare (job #579161)

Utilizator avatar Maftei_Andrei Maftei Andrei Iulian Maftei_Andrei IP ascuns
Problemă Fotografie (clasele 9-10) Compilator cpp-32 | vezi sursa
Rundă Arhiva de probleme Status evaluat
Dată 21 ian. 2021 20:14:22 Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:21:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1001]' [-Wformat=] 21 | scanf(" %s ", &s); | ~^ ~~ | | | | | char (*)[1001] | char* main.cpp:31:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1001]' [-Wformat=] 31 | scanf(" %s ", &s); | ~^ ~~ | | | | | char (*)[1001] | char* main.cpp:14:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 14 | freopen("fotografie.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:15:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 15 | freopen("fotografie.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:18:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 18 | scanf("%d%d", &n, &m); | ~~~~~^~~~~~~~~~~~~~~~ main.cpp:21:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 21 | scanf(" %s ", &s); | ~~~~~^~~~~~~~~~~~ main.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 28 | scanf("%d%d", &N, &M ); | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp:31:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 31 | scanf(" %s ", &s); | ~~~~~^~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 262 kb OK 10
2 1 ms 262 kb OK 10
3 1 ms 262 kb OK 10
4 10 ms 651 kb OK 10
5 25 ms 786 kb OK 10
6 46 ms 786 kb OK 10
7 106 ms 1179 kb Time limit exceeded 0
8 105 ms 1306 kb Time limit exceeded 0
9 103 ms 1699 kb Time limit exceeded 0
10 100 ms 1437 kb Time limit exceeded 0
Punctaj total 60