Borderou de evaluare (job #2199066)

Utilizator giotoPopescu Ioan gioto Data 26 aprilie 2018 16:51:52
Problema Karb2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void dfs(int)’: user.cpp:14:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v[nod].size() ; ++i){ ~~^~~~~~~~~~~~~~~ user.cpp:34:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v[nod].size() ; ++i){ ~~^~~~~~~~~~~~~~~ user.cpp:48:14: warning: unused variable ‘mata’ [-Wunused-variable] bool mata = 0; ^~~~ user.cpp:51:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v[nod].size() ; ++i){ ~~^~~~~~~~~~~~~~~ user.cpp:54:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i + 1 == v[nod].size()) Next = 1; ~~~~~~^~~~~~~~~~~~~~~~ user.cpp:56:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i + 2 == v[nod].size()) Next = 1; ~~~~~~^~~~~~~~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:66:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("karb2.in", "r", stdin); ^ user.cpp:67:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("karb2.out", "w", stdout); ^ user.cpp:68:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:71:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ user.cpp:75:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms3504kbOK10
20ms3508kbOK10
30ms3504kbOK10
40ms3504kbOK10
50ms3520kbOK10
60ms3524kbOK10
736ms4068kbOK10
876ms4680kbOK10
9108ms5032kbOK10
10136ms5408kbOK10
Punctaj total100

Ceva nu functioneaza?