Borderou de evaluare (job #3273546)
Utilizator | Data | 2 februarie 2025 16:34:45 | |
---|---|---|---|
Problema | Dmin2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:14: error: conflicting declaration 'std::vector<int> g [1000005]'
9 | vector <int> g[1000005];
| ^
main.cpp:6:10: note: previous declaration as 'std::ofstream g'
6 | ofstream g("dmin2.out");
| ^
main.cpp: In function 'void bfs()':
main.cpp:27:23: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
27 | for (int kid:g[nod] )
| ^
main.cpp: In function 'int main()':
main.cpp:43:10: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
43 | g[x].push_back(y);
| ^
main.cpp:44:10: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
44 | g[y].push_back(x);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !