Borderou de evaluare (job #2439279)
Utilizator | Data | 15 iulie 2019 15:56:05 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:15: error: conflicting declaration 'bool f [1000005]'
bool f[1000005];
^
main.cpp:3:10: note: previous declaration as 'std::ifstream f'
ifstream f("hashuri.in");
^
main.cpp: In function 'int main()':
main.cpp:14:14: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
f[x]=1;
^
main.cpp:16:14: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
f[x]=0;
^
main.cpp:18:17: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
g<<f[x]<<"\n";
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !