Borderou de evaluare (job #765057)

Utilizator avatar vasia_sirioja dsdsdarewrewrewdasdas vasia_sirioja IP ascuns
Problemă Album (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 26 feb. 2024 11:10:37 Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:21:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | freopen("album.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:22:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | freopen("album.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'bool isOK(int, int, int)', inlined from 'int main()' at main.cpp:65:13: main.cpp:10:33: warning: 'x1' may be used uninitialized [-Wmaybe-uninitialized] 10 | if(a[n][i] == 1 && i == x1) ++cnt; | ~~~~~~~~~~~~~^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:47:29: note: 'x1' was declared here 47 | int x1, x2, j = 2; | ^~ In function 'bool isOK(int, int, int)', inlined from 'int main()' at main.cpp:65:13: main.cpp:11:33: warning: 'x2' may be used uninitialized [-Wmaybe-uninitialized] 11 | if(a[n][i] == 1 && i == x2) ++cnt; | ~~~~~~~~~~~~~^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:47:33: note: 'x2' was declared here 47 | int x1, x2, j = 2; | ^~ main.cpp:41:38: warning: 'x1' may be used uninitialized [-Wmaybe-uninitialized] 41 | cout << x2 << ' ' << x1; | ^~ main.cpp:32:28: note: 'x1' was declared here 32 | int j = 2, x1, x2; | ^~ main.cpp:41:31: warning: 'x2' may be used uninitialized [-Wmaybe-uninitialized] 41 | cout << x2 << ' ' << x1; | ^~~ main.cpp:32:32: note: 'x2' was declared here 32 | int j = 2, x1, x2; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 245 kb Pomana - puncte din oficiu 10
2 1 ms 245 kb OK 5
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb OK 5
5 29 ms 2867 kb OK 5
6 1 ms 245 kb OK 5
7 49 ms 4698 kb Incorect 0
8 208 ms 16760 kb Memory limit exceeded 0
9 1 ms 245 kb OK 5
10 1 ms 245 kb OK 5
11 1 ms 245 kb OK 5
12 2 ms 245 kb OK 5
13 1 ms 245 kb OK 5
14 1 ms 245 kb OK 5
15 1504 ms 770 kb Time limit exceeded 0
16 159 ms 17289 kb Memory limit exceeded 0
17 1508 ms 4702 kb Time limit exceeded 0
18 1509 ms 4702 kb Time limit exceeded 0
19 149 ms 17022 kb Memory limit exceeded 0
Punctaj total 60