Borderou de evaluare (job #2918017)
Utilizator | Data | 9 august 2022 12:27:52 | |
---|---|---|---|
Problema | Paznici | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:12: error: conflicting declaration 'int r [30]'
9 | int l[30], r[30];
| ^
main.cpp:4:10: note: previous declaration as 'std::ifstream r'
4 | ifstream r("paznici.in");
| ^
main.cpp: In function 'bool pairup(int)':
main.cpp:22:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
22 | if(!r[it])
| ^
main.cpp:25:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
25 | r[it] = x;
| ^
main.cpp:31:20: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
31 | if(pairup(r[it]))
| ^
main.cpp:34:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
34 | r[it] = x;
| ^
main.cpp: In function 'void dfs(int)':
main.cpp:47:17: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
47 | st[r[it]] = 0;
| ^
main.cpp:48:18: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
48 | dfs(r[it]);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !