Borderou de evaluare (job #622662)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Fibrec (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 22 dec. 2021 12:52:44 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'll' does not name a type
3 | ll dp[10];
| ^~
main.cpp:4:1: error: 'll' does not name a type
4 | ll fib(ll n)
| ^~
main.cpp: In function 'int main()':
main.cpp:24:9: error: 'll' was not declared in this scope
24 | ll n;
| ^~
main.cpp:25:16: error: 'n' was not declared in this scope; did you mean 'yn'?
25 | cin >> n;
| ^
| yn
main.cpp:26:17: error: 'fib' was not declared in this scope
26 | cout << fib(n);
| ^~~
main.cpp:22:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | freopen("fibrec.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:23:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | freopen("fibrec.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~