Borderou de evaluare (job #1767178)
Utilizator | Data | 28 septembrie 2016 19:37:58 | |
---|---|---|---|
Problema | Ruksak | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:19: error: conflicting declaration ‘float g [100]’
float c[100],g[100],x[100],gr,gmax;
^
user.cpp:4:10: error: ‘g’ has a previous declaration as ‘std::ofstream g’
ofstream g("ruksak.out");
^
user.cpp: In function ‘int main()’:
user.cpp:13:24: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
o[i]=i; f>>c[i]<<g[i];
^
user.cpp:19:25: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
if(c[o[i]]/g[o[i]]<c[o[i+1]]/g[o[i+1]])
^
user.cpp:19:43: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
if(c[o[i]]/g[o[i]]<c[o[i+1]]/g[o[i+1]])
^
user.cpp:27:25: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
x[o[i]]=1; gr-=g[o[i]];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !