Borderou de evaluare (job #680207)

Utilizator avatar andrei81 Ragman Andrei Adrian andrei81 IP ascuns
Problemă Clasa2 Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 dec. 2022 21:15:26 Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:56:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 56 | for ( mm = 1; mm < v.size() && v[mm] == v[mm - 1]; mm++ ) | ~~~^~~~~~~~~~ main.cpp:63:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 63 | for ( int i = mm; i < v.size(); i++ ) | ~~^~~~~~~~~~ main.cpp:47:18: warning: unused variable 'last' [-Wunused-variable] 47 | int cnt = 0, last = 0; | ^~~~ main.cpp: In function 'void Read(int&)': main.cpp:20:18: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fread(buff, 1, DIM, stdin), poz = 0; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:25:18: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 25 | fread(buff, 1, DIM, stdin), poz = 0; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:31:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 31 | freopen("clasa2.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:32:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 32 | freopen("clasa2.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:36:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ main.cpp:41:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 41 | scanf("%d", &a); | ~~~~~^~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb Incorect 0
2 1 ms 114 kb Incorect 0
3 1 ms 114 kb OK 5
4 8 ms 249 kb OK 5
5 11 ms 245 kb OK 5
6 1 ms 118 kb OK 5
7 10 ms 249 kb OK 5
8 11 ms 245 kb OK 5
9 14 ms 376 kb OK 5
10 17 ms 372 kb OK 5
11 26 ms 507 kb OK 5
12 36 ms 507 kb OK 5
13 73 ms 774 kb OK 5
14 335 ms 2334 kb OK 5
15 500 ms 4431 kb Time limit exceeded 0
16 509 ms 4431 kb Time limit exceeded 0
17 508 ms 4562 kb Time limit exceeded 0
18 503 ms 4562 kb Time limit exceeded 0
19 507 ms 4431 kb Time limit exceeded 0
20 508 ms 4427 kb Time limit exceeded 0
Punctaj total 60