Borderou de evaluare (job #2557233)
Utilizator | Data | 25 februarie 2020 17:38:14 | |
---|---|---|---|
Problema | Chiftea | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:23:15: error: conflicting declaration 'std::ofstream g'
ofstream g("chiftea.out");
^
main.cpp:6:15: note: previous declaration as 'int g'
{ int n,t,c,g,p=1,v[103],x[103];
^
main.cpp:25:12: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
g<<x[p]<<"\n";
~~~~~~~^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !