Borderou de evaluare (job #1443630)
Utilizator | Data | 28 mai 2015 12:54:32 | |
---|---|---|---|
Problema | Coco Chanel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:27: error: conflicting declaration ‘int g [100000]’
int n,m,c[100000],g[100000],s=0;
^
user.cpp:14:10: error: ‘g’ has a previous declaration as ‘std::ofstream g’
ofstream g("cocochanel.out");
^
user.cpp:20:5: error: no match for ‘operator[]’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
f>>g[i];
^
user.cpp:22:1: error: ‘j’ was not declared in this scope
j=0;
^
user.cpp:23:5: error: ‘i’ was not declared in this scope
for(i=0;i<n;i++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !