Borderou de evaluare (job #2735713)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 2 aprilie 2021 18:44:24
Problema Polihroniade Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 74

Raport evaluator

Compilare: main.cpp: In function 'int cntop(int, int, std::__cxx11::string, std::__cxx11::string)': main.cpp:23:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0 ; i < l.length() ; i ++) ~~^~~~~~~~~~~~ main.cpp:30:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0 ; i < c.length() ; i ++) ~~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:59:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0 ; j < v.size() && !ok ; j ++) ~~^~~~~~~~~~ main.cpp:74:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0 ; i < v.size() && ok ; i ++) ~~^~~~~~~~~~ main.cpp:77:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0 ; j < v[i].size() ; j ++) ~~^~~~~~~~~~~~~ main.cpp:82:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0 ; j < v[0].length() && ok ; j ++) ~~^~~~~~~~~~~~~~~ main.cpp:102:31: warning: variable 'imin' set but not used [-Wunused-but-set-variable] int mn = INF, op, imin, jmin; ^~~~ main.cpp:102:37: warning: variable 'jmin' set but not used [-Wunused-but-set-variable] int mn = INF, op, imin, jmin; ^~~~ main.cpp:41:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("polihroniade.in", "r", stdin); ^ main.cpp:42:45: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("polihroniade.out", "w", stdout); ^ main.cpp:44:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &p, &tst); ^ main.cpp:51:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ main.cpp:48:17: warning: iteration 1005 invokes undefined behavior [-Waggressive-loop-optimizations] t[1][j] = (!(j & 1)) + '0'; ~~~~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:47:19: note: within this loop for(j = 0 ; j < 2000 ; j ++) ~~^~~~~~ main.cpp:46:17: warning: iteration 1005 invokes undefined behavior [-Waggressive-loop-optimizations] t[0][j] = (j & 1) + '0'; ~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:45:19: note: within this loop for(j = 0 ; j < 2000 ; j ++) ~~^~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
113ms131kbCorect!14
269ms131kbCorect!13
376ms131kbCorect!13
47ms131kbCorect!5
511ms131kbCorect!5
618ms131kbCorect!6
732ms131kbCorect!6
860ms131kbCorect!6
9162ms131kbCorect!6
106ms131kbGresit!0
1110ms131kbGresit!0
1217ms131kbGresit!0
1332ms131kbGresit!0
1460ms131kbGresit!0
15135ms131kbGresit!0
Punctaj total74

Ceva nu functioneaza?