Borderou de evaluare (job #2601859)
Utilizator | Data | 15 aprilie 2020 12:38:38 | |
---|---|---|---|
Problema | Panouri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:25: error: conflicting declaration 'int f [20002]'
int n,T,t[20002],f[20002],v[200002],i,sol,nr,x;
^
main.cpp:5:10: note: previous declaration as 'std::ifstream f'
ifstream f ("panouri.in");
^
main.cpp: In function 'int main()':
main.cpp:27:1: error: expected ';' before 'if'
if (t[v[i]] && !f[v[i]])
^~
main.cpp:29:2: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
f[v[i]]++;
^
main.cpp:35:2: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
f[x]--;
^
main.cpp:36:15: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
if (t[x] && !f[x])
^
main.cpp:42:1: error: expected ';' before 'else'
else
^~~~
main.cpp:45:1: error: expected ';' before 'g'
g.close()
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !