Borderou de evaluare (job #690572)

Utilizator avatar trofim_ion Trofim Ion trofim_ion IP ascuns
Problemă Placa (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 26 ian. 2023 21:26:30 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:40:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 40 | for(int i = 0; i < v.size()-1; i++) { | ~~^~~~~~~~~~~~ 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(int i = 0; i < v1.size(); i++) { | ~~^~~~~~~~~~~ main.cpp:14:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | freopen("placa.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:15:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | freopen("placa.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:52:22: warning: 'R' may be used uninitialized in this function [-Wmaybe-uninitialized] 52 | for(int i = L; i <= R; i++) { | ~~^~~~ main.cpp:38:9: warning: 'L' may be used uninitialized in this function [-Wmaybe-uninitialized] 38 | int L, R, current_mn = INF, current_mx = 0; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 241 kb OK 10
2 1 ms 241 kb OK 10
3 23 ms 643 kb OK 10
4 1 ms 241 kb OK 10
5 72 ms 1908 kb OK 10
6 76 ms 2023 kb OK 10
7 71 ms 2027 kb OK 10
8 48 ms 1032 kb OK 10
9 62 ms 1294 kb OK 10
10 56 ms 1294 kb OK 10
Punctaj total 100