Borderou de evaluare (job #2601875)

Utilizator david.teacaDavid Stefan Teaca david.teaca Data 15 aprilie 2020 12:58:57
Problema Panouri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:37: error: conflicting declaration 'int f [20002]' int n,T,i,v[200002],t[20002],f[20002],x,sol,nr; ^ main.cpp:5:10: note: previous declaration as 'std::ifstream f' ifstream f("panouri.in"); ^ main.cpp: In function 'int main()': main.cpp:19:17: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if(t[v[i]] && !f[v[i]]) ^ main.cpp:21:2: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[v[i]]++; ^ main.cpp:26:14: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[x]--; ^ main.cpp:27:26: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if(t[x] && !f[x]) ^ Non zero exit status: 1

Ceva nu functioneaza?