Borderou de evaluare (job #2441607)

Utilizator CharacterMeCharacter Me CharacterMe Data 20 iulie 2019 17:59:43
Problema Razboiul lumilor Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void down_dfs(int)': main.cpp:50:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<graph[node].size(); ++i)if(graph[node][i].node!=dad[node]){ ~^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void up_dfs(int, int)': main.cpp:70:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if(nr==graph[up].size()-1) { ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:78:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<graph[node].size(); ++i) if(graph[node][i].node==up){ ~^~~~~~~~~~~~~~~~~~~ main.cpp:83:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1; i<graph[node].size(); ++i) graph[node][i].left=max(graph[node][i].left, graph[node][i-1].left); ~^~~~~~~~~~~~~~~~~~~ main.cpp:85:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<graph[node].size(); ++i) if(graph[node][i].node!=dad[node])up_dfs(graph[node][i].node, i); ~^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:17:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("razboi.in", "r", stdin); ^ main.cpp:18:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("razboi.out", "w", stdout); ^ main.cpp:19:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ main.cpp:22:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:26:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &x, &y, &d); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1213ms2359kbOK100
Punctaj total100

Ceva nu functioneaza?