Borderou de evaluare (job #579163)

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:15:42 Scor 50

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:38:19: warning: unused variable 'pow2' [-Wunused-variable] 38 | int pow1 = 1, pow2 = 1, Pow1 = 1, Pow2 = 1; | ^~~~ main.cpp:38:39: warning: unused variable 'Pow2' [-Wunused-variable] 38 | int pow1 = 1, pow2 = 1, Pow1 = 1, Pow2 = 1; | ^~~~ main.cpp:50:19: warning: unused variable 'has2' [-Wunused-variable] 50 | int has1 = 0, has2 = 0; | ^~~~ main.cpp:59:17: warning: variable 'H2' set but not used [-Wunused-but-set-variable] 59 | int H1 = 0, H2 = 0; | ^~ 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 1 ms 262 kb OK 10
5 13 ms 786 kb OK 10
6 26 ms 913 kb Incorect 0
7 77 ms 1179 kb Incorect 0
8 99 ms 1306 kb Incorect 0
9 105 ms 1703 kb Time limit exceeded 0
10 101 ms 1441 kb Time limit exceeded 0
Punctaj total 50