Borderou de evaluare (job #809828)

Utilizator avatar bogdan_ Goian Bogdan bogdan_ IP ascuns
Problemă Exp (clasa a 9-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 feb. 2025 10:29:44 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:29:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 29 | while(i<f.size()) | ~^~~~~~~~~ main.cpp:34:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 34 | for(int i=0; i<f.size(); i++) | ~^~~~~~~~~ main.cpp:39:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 39 | for(int i=0; i<f.size(); i++) | ~^~~~~~~~~ main.cpp:43:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 43 | for(int i=0; i<f.size(); i++) | ~^~~~~~~~~ main.cpp:43:10: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 43 | for(int i=0; i<f.size(); i++) | ^~~ main.cpp:45:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 45 | return 0; | ^~~~~~ main.cpp:18:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | {freopen("exp.in", "r", stdin); freopen("exp.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:18:48: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | {freopen("exp.in", "r", stdin); freopen("exp.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 249 kb OK 10
6 1 ms 249 kb OK 10
7 1 ms 249 kb OK 10
8 9 ms 266 kb OK 10
9 9 ms 249 kb OK 10
10 29 ms 270 kb OK 10
Punctaj total 100