Borderou de evaluare (job #583634)

Utilizator avatar Yusyboss Fares Yusuf Yusyboss IP ascuns
Problemă Decod (baraj gimnaziu) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 28 feb. 2021 01:37:20 Scor 90

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:31:17: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[10]' [-Wformat=] 31 | fscanf(fin, "%s", &v1); | ~^ ~~~ | | | | | char (*)[10] | char* main.cpp:32:17: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[800001]' [-Wformat=] 32 | fscanf(fin, "%s", &v2); | ~^ ~~~ | | | | | char (*)[800001] | char* main.cpp:27:16: warning: unused variable 'val' [-Wunused-variable] 27 | int k, p, i, val, lung_val, valmax, nr, j, nval, ci; | ^~~ main.cpp:27:21: warning: unused variable 'lung_val' [-Wunused-variable] 27 | int k, p, i, val, lung_val, valmax, nr, j, nval, ci; | ^~~~~~~~ main.cpp:30:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 30 | fscanf(fin, "%d%d", &k, &p); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:31:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 31 | fscanf(fin, "%s", &v1); | ~~~~~~^~~~~~~~~~~~~~~~ main.cpp:32:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 32 | fscanf(fin, "%s", &v2); | ~~~~~~^~~~~~~~~~~~~~~~
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 1 ms 262 kb OK 10
6 1 ms 262 kb OK 10
7 1 ms 262 kb OK 10
8 1 ms 262 kb OK 10
9 1 ms 262 kb OK 10
10 1 ms 262 kb Incorect 0
Punctaj total 90