Borderou de evaluare (job #2625436)
Utilizator | Data | 5 iunie 2020 22:54:26 | |
---|---|---|---|
Problema | Schi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:22: error: conflicting declaration 'int f [30005]'
int v[30005], f[30005], tree[4 * 30005];
^
main.cpp:3:10: note: previous declaration as 'std::ifstream f'
ifstream f("schi.in");
^
main.cpp: In function 'void clasament(int, int, int, int)':
main.cpp:23:10: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
f[l] = i;
^
main.cpp: In function 'int main()':
main.cpp:46:13: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
g<<f[i]<<"\n";
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !