Borderou de evaluare (job #2789354)
Utilizator | Data | 27 octombrie 2021 14:19:39 | |
---|---|---|---|
Problema | Mesaj4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: expected initializer before 'vector'
12 | vector<pair<int,int>>pereche;
| ^~~~~~
main.cpp: In function 'void DFS(int)':
main.cpp:16:5: error: 'ap' was not declared in this scope
16 | ap[start] = true;
| ^~
main.cpp:17:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = 0; i < v[start].size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp:21:13: error: 'pereche' was not declared in this scope
21 | pereche.push_back({start + 1, v[start][i] + 1});
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:42:8: error: 'pereche' was not declared in this scope
42 | if(pereche.size() == X - 1)
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !