Borderou de evaluare (job #2320115)
Utilizator | Data | 14 ianuarie 2019 11:36:15 | |
---|---|---|---|
Problema | Calandrinon | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:11: error: conflicting declaration 'bool in [50]'
bool in[50];
^
main.cpp:5:10: note: previous declaration as 'std::ifstream in'
ifstream in("calandrinon.in");
^~
main.cpp: In function 'int main()':
main.cpp:28:8: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
if(in[i - 'a'] == 0)
^
main.cpp:32:7: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
in[v[v.size() - 1] - 'a'] = 0;
^
main.cpp:37:6: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
in[i - 'a'] = 1;
^
main.cpp:24:6: warning: unused variable 'k' [-Wunused-variable]
int k = -1;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !