Borderou de evaluare (job #3204672)
Raport evaluator
Compilare:
main.cpp: In function 'void dfs(int, int, int*)':
main.cpp:49:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
49 | if(!g[x].size() || g[x].size()==1 && g[x][0]==ant)
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:51:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int i=0;i<g[x].size();i++)
| ~^~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:41:12: warning: 'nod' may be used uninitialized [-Wmaybe-uninitialized]
41 | dfs(nod,0,v);
| ~~~^~~~~~~~~
main.cpp:17:32: note: 'nod' was declared here
17 | int n,m,minim=10000000,nod;
| ^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 49ms | 3026kb | Incorect | 0 |
Punctaj total | 0 |