Borderou de evaluare (job #620192)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dragoni | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 dec. 2021 09:23:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: expected ',' or ';' before 'ofstream'
7 | ofstream out("dragoni.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:12:5: error: expected initializer before 'in'
12 | in>>n>>k;
| ^~
main.cpp:13:13: error: 'k' was not declared in this scope
13 | if( n - k > 2 )
| ^
main.cpp:14:9: error: 'out' was not declared in this scope
14 | out<<"Antonio";
| ^~~
main.cpp:16:9: error: 'out' was not declared in this scope
16 | out<<"Mihai";
| ^~~