Pagini recente » Borderou de evaluare (job #2782964) | Borderou de evaluare (job #3311146) | Borderou de evaluare (job #3320611) | Borderou de evaluare (job #180379) | Borderou de evaluare (job #2273139)
Borderou de evaluare (job #2273139)
Raport evaluator
Compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:22:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vecini[x].size();++i) {if(seen[node]==0) dfs(node,val+1);}
~^~~~~~~~~~~~~~~~~
main.cpp: In function 'void bwdfs(int, int)':
main.cpp:28:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vecini[x].size();++i){if(seen[node]==seen[x]-1) {bwdfs(node,val); return;}}
~^~~~~~~~~~~~~~~~~
main.cpp: In function 'void Dfs(int)':
main.cpp:45:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vecini[x].size();++i)
~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:106:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;++i) seen[i]=0; seen[root]=1; last=root;
^~~
main.cpp:106:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=1;i<=n;++i) seen[i]=0; seen[root]=1; last=root;
^~~~
main.cpp:110:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vecini[last].size() && vz<n;++i)
~^~~~~~~~~~~~~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 393kb | Incorect | 0 |
| 2 | 3ms | 393kb | OK | 5 |
| 3 | 3ms | 393kb | OK | 5 |
| 4 | 3ms | 393kb | Incorect | 0 |
| 5 | 3ms | 393kb | OK | 5 |
| 6 | 3ms | 393kb | Incorect | 0 |
| 7 | 4ms | 393kb | Incorect | 0 |
| 8 | 6ms | 393kb | OK | 5 |
| 9 | 6ms | 393kb | Incorect | 0 |
| 10 | 6ms | 393kb | Incorect | 0 |
| 11 | 14ms | 524kb | OK | 5 |
| 12 | 14ms | 524kb | Incorect | 0 |
| 13 | 28ms | 524kb | Incorect | 0 |
| 14 | 28ms | 524kb | Incorect | 0 |
| 15 | 30ms | 655kb | Incorect | 0 |
| 16 | 28ms | 524kb | Incorect | 0 |
| 17 | 47ms | 524kb | Incorect | 0 |
| 18 | 77ms | 655kb | Incorect | 0 |
| 19 | 101ms | 655kb | Time limit exceeded | 0 |
| 20 | 101ms | 786kb | Time limit exceeded | 0 |
| Punctaj total | 25 |