Borderou de evaluare (job #3376042)
| Utilizator | Data | 15 noiembrie 2026 15:40:08 | |
|---|---|---|---|
| Problema | Ciclu Eulerian | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int)':
main.cpp:15:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for(poz[nod] < g[nod].size()){
| ~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:15:33: error: expected ';' before ')' token
15 | for(poz[nod] < g[nod].size()){
| ^
| ;
main.cpp:15:18: warning: value computed is not used [-Wunused-value]
15 | for(poz[nod] < g[nod].size()){
| ~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:22:18: error: could not convert 'ans.std::vector<int>::push_back(nod)' from 'void' to 'bool'
22 | ans.push_back(nod);
| ~~~~~~~~~~~~~^~~~~
| |
| void
main.cpp:23:1: error: expected primary-expression before '}' token
23 | }
| ^
main.cpp:22:24: error: expected ')' before '}' token
22 | ans.push_back(nod);
| ^
| )
23 | }
| ~
main.cpp:15:8: note: to match this '('
15 | for(poz[nod] < g[nod].size()){
| ^
main.cpp:23:1: error: expected primary-expression before '}' token
23 | }
| ^
main.cpp: In function 'int main()':
main.cpp:30:16: warning: unused variable 'j' [-Wunused-variable]
30 | int i, j, n, m, x, y;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
