Pagini recente » Borderou de evaluare (job #940904) | Borderou de evaluare (job #217523) | Borderou de evaluare (job #940902) | Borderou de evaluare (job #2158271) | Borderou de evaluare (job #2273136)
Borderou de evaluare (job #2273136)
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 | Incorect | 0 |
| 4 | 3ms | 393kb | Incorect | 0 |
| 5 | 3ms | 393kb | Incorect | 0 |
| 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 | 13ms | 524kb | OK | 5 |
| 12 | 13ms | 524kb | Incorect | 0 |
| 13 | 21ms | 524kb | Incorect | 0 |
| 14 | 20ms | 524kb | Incorect | 0 |
| 15 | 21ms | 655kb | Incorect | 0 |
| 16 | 20ms | 524kb | Incorect | 0 |
| 17 | 33ms | 524kb | Incorect | 0 |
| 18 | 51ms | 655kb | Incorect | 0 |
| 19 | 100ms | 655kb | Time limit exceeded | 0 |
| 20 | 100ms | 786kb | Time limit exceeded | 0 |
| Punctaj total | 15 |