Borderou de evaluare (job #765043)

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 10:58:14 Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:19:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | freopen("album.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:20:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | freopen("album.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'bool isOK(int, int, int)', inlined from 'int main()' at main.cpp:64: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:45:29: note: 'x1' was declared here 45 | int x1, x2, j = 2; | ^~ In function 'bool isOK(int, int, int)', inlined from 'int main()' at main.cpp:64: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:45:33: note: 'x2' was declared here 45 | int x1, x2, j = 2; | ^~ main.cpp:39:38: warning: 'x1' may be used uninitialized [-Wmaybe-uninitialized] 39 | cout << x2 << ' ' << x1; | ^~ main.cpp:30:28: note: 'x1' was declared here 30 | int j = 2, x1, x2; | ^~ main.cpp:39:31: warning: 'x2' may be used uninitialized [-Wmaybe-uninitialized] 39 | cout << x2 << ' ' << x1; | ^~~ main.cpp:30:32: note: 'x2' was declared here 30 | int j = 2, x1, x2; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Pomana - puncte din oficiu 10
2 1 ms 245 kb OK 5
3 1 ms 249 kb Incorect 0
4 1 ms 245 kb OK 5
5 79 ms 2867 kb OK 5
6 1 ms 245 kb OK 5
7 129 ms 4698 kb Incorect 0
8 689 ms 16498 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 1 ms 245 kb OK 5
13 1 ms 245 kb OK 5
14 1 ms 245 kb OK 5
15 1509 ms 770 kb Time limit exceeded 0
16 417 ms 16498 kb Memory limit exceeded 0
17 1508 ms 4706 kb Time limit exceeded 0
18 1508 ms 4706 kb Time limit exceeded 0
19 389 ms 16764 kb Memory limit exceeded 0
Punctaj total 60