Borderou de evaluare (job #801770)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Iepuraș2 (clasa a 5-a) | Compilator | c-32 |
Rundă | Christmas Gift | Status | evaluat |
Dată | 30 dec. 2024 13:34:18 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:1:2: error: stray '#' in program
1 | v#include <fstream>
| ^
main.c:1:1: error: unknown type name 'v'
1 | v#include <fstream>
| ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | v#include <fstream>
| ^
main.c:3:1: error: unknown type name 'ifstream'
3 | ifstream fin("iepuras2.in");
| ^~~~~~~~
main.c:3:14: error: expected declaration specifiers or '...' before string constant
3 | ifstream fin("iepuras2.in");
| ^~~~~~~~~~~~~
main.c:4:1: error: unknown type name 'ofstream'
4 | ofstream fout("iepuras2.out");
| ^~~~~~~~
main.c:4:15: error: expected declaration specifiers or '...' before string constant
4 | ofstream fout("iepuras2.out");
| ^~~~~~~~~~~~~~
main.c: In function 'main':
main.c:7:5: error: 'fin' undeclared (first use in this function)
7 | fin >> C >> N;
| ^~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:35:13: error: 'fout' undeclared (first use in this function)
35 | fout<<n_min + n_max << endl;
| ^~~~
main.c:35:36: error: 'endl' undeclared (first use in this function)
35 | fout<<n_min + n_max << endl;
| ^~~~