Borderou de evaluare (job #3210471)
Utilizator | Data | 6 martie 2024 12:16:24 | |
---|---|---|---|
Problema | Al k-lea termen Fibonacci | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:40: error: '_S_out' was not declared in this scope; did you mean 'std::_S_out'?
2 | std::fstream f("kfib.in"),g("kfib.out",_S_out);int x,y=1,z,k;main(){for(f>>k;k--%1332028;z=(x+y)%666013,x=y,y=z);g<<x;}
| ^~~~~~
| std::_S_out
In file included from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/ios_base.h:117:7: note: 'std::_S_out' declared here
117 | _S_out = 1L << 4,
| ^~~~~~
main.cpp:2:62: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | std::fstream f("kfib.in"),g("kfib.out",_S_out);int x,y=1,z,k;main(){for(f>>k;k--%1332028;z=(x+y)%666013,x=y,y=z);g<<x;}
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !