Borderou de evaluare (job #680210)

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:26:32 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:57:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 57 | for ( mm = 1; mm < v.size() && v[mm] == v[mm - 1]; mm++ ) | ~~~^~~~~~~~~~ main.cpp:60:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 60 | if ( mm < v.size() ) | ~~~^~~~~~~~~~ main.cpp:71:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 71 | for ( int i = mm + 1; i < v.size(); i++ ) | ~~^~~~~~~~~~ main.cpp:48:18: warning: unused variable 'last' [-Wunused-variable] 48 | int cnt = 0, last = 0; | ^~~~ main.cpp: In function 'void Read(int&)': main.cpp:22:18: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | fread(buff, 1, DIM, stdin), poz = 0; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:27:18: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fread(buff, 1, DIM, stdin), poz = 0; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:33:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 33 | freopen("clasa2.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:34:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 34 | freopen("clasa2.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb OK 5
2 1 ms 114 kb OK 5
3 1 ms 114 kb OK 5
4 1 ms 249 kb OK 5
5 1 ms 245 kb OK 5
6 1 ms 245 kb OK 5
7 1 ms 249 kb OK 5
8 1 ms 249 kb OK 5
9 1 ms 249 kb OK 5
10 1 ms 245 kb OK 5
11 1 ms 245 kb OK 5
12 12 ms 376 kb OK 5
13 23 ms 507 kb OK 5
14 95 ms 1945 kb OK 5
15 318 ms 4177 kb OK 5
16 190 ms 4177 kb OK 5
17 290 ms 4177 kb OK 5
18 242 ms 4177 kb OK 5
19 245 ms 4182 kb OK 5
20 261 ms 4177 kb OK 5
Punctaj total 100