Borderou de evaluare (job #622772)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Fibrec (clasa a 7-a) | Compilator | cpp-32 |
Rundă | lasm_22_12_2021_clasa11 | Status | evaluat |
Dată | 22 dec. 2021 14:38:24 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int fibrec()':
main.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
13 | }
| ^
main.cpp: In function 'int main()':
main.cpp:17:10: error: conflicting declaration 'std::ofstream fibrec'
17 | ofstream fibrec("fibrec.out");
| ^~~~~~
main.cpp:16:10: note: previous declaration as 'std::ifstream fibrec'
16 | ifstream fibrec("fibrec.in");
| ^~~~~~
main.cpp:18:24: error: 'out' was not declared in this scope
18 | if(n==1||n==2) out<<n0;
| ^~~
main.cpp:19:20: error: no match for call to '(std::ifstream {aka std::basic_ifstream<char>}) ()'
19 | else fibrec();
| ~~~~~~^~