Borderou de evaluare (job #3190521)
Utilizator | Data | 7 ianuarie 2024 17:48:19 | |
---|---|---|---|
Problema | Negot | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:13: error: conflicting declaration 'std::vector<int> g [41010]'
18 | vector<int> g[N + M];
| ^
main.cpp:12:10: note: previous declaration as 'std::ofstream g'
12 | ofstream g("negot.out");
| ^
main.cpp: In function 'void bfs()':
main.cpp:42:34: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
42 | for (int next : g[current])
| ^
main.cpp: In function 'int main()':
main.cpp:75:26: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
75 | g[i].push_back(n + magazin);
| ^
main.cpp:76:26: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
76 | g[n + magazin].push_back(i);
| ^
main.cpp:85:18: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
85 | g[src].push_back(i);
| ^
main.cpp:86:18: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
86 | g[i].push_back(src);
| ^
main.cpp:94:18: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
94 | g[i].push_back(dst);
| ^
main.cpp:95:18: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
95 | g[dst].push_back(i);
| ^
main.cpp:111:34: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int')
111 | for (int next : g[dst])
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !