Borderou de evaluare (job #1487494)
Utilizator | Data | 16 septembrie 2015 22:31:42 | |
---|---|---|---|
Problema | Coco Chanel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:17: error: conflicting declaration ‘int g [100]’
int c[100],g[100],N,M;
^
user.cpp:6:10: error: ‘g’ has a previous declaration as ‘std::ofstream g’
ofstream g("cocochanel.out");
^
user.cpp: In function ‘int poz(int, int)’:
user.cpp:13:13: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
if(g[ls]>=g[ld])
^
user.cpp:13:20: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
if(g[ls]>=g[ld])
^
user.cpp:15:21: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
aux=g[ls];
^
user.cpp:16:18: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
g[ls]=g[ld];
^
user.cpp:16:24: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
g[ls]=g[ld];
^
user.cpp:17:18: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
g[ld]=aux;
^
user.cpp: In function ‘int main()’:
user.cpp:44:13: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
f>>g[i];
^
user.cpp:50:19: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
if(c[i]<=g[j])
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !