Borderou de evaluare (job #3250828)
Utilizator | Data | 23 octombrie 2024 19:48:44 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:1: error: expected ',' or ';' before 'int'
11 | int n, m;
| ^~~
main.cpp: In function 'void citire_listaad(int, std::vector<int>*)':
main.cpp:18:25: error: 'm' was not declared in this scope
18 | for (int i = 0; i < m; i++) {
| ^
main.cpp:24:26: error: 'n' was not declared in this scope
24 | for (int i = 1; i <= n; i++) {
| ^
main.cpp:25:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (int j = 0; j < U[i].size(); j++)
| ~~^~~~~~~~~~~~~
main.cpp: In function 'void BFS(int)':
main.cpp:38:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (int i = 0; i < U[a].size(); i++)
| ~~^~~~~~~~~~~~~
main.cpp: In function 'void bfs(int)':
main.cpp:49:14: error: 'n' was not declared in this scope
49 | V.resize(n + 1);
| ^
main.cpp:60:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (int i = 0; i < U[a].size(); i++) {
| ~~^~~~~~~~~~~~~
main.cpp: In function 'void DFS(int)':
main.cpp:77:16: error: 'n' was not declared in this scope
77 | Viz.resize(n + 1);
| ^
main.cpp:85:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | for (int i = 0; i < U[a].size(); i++) {
| ~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:96:10: error: 'n' was not declared in this scope
96 | f >> n >> m;
| ^
main.cpp:96:15: error: 'm' was not declared in this scope; did you mean 'tm'?
96 | f >> n >> m;
| ^
| tm
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !