Borderou de evaluare (job #3210503)

Utilizator popescuadrianpopescuadrian popescuadrian Data 6 martie 2024 13:19:42
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:65: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | std::fstream f("kfib.in"),g("kfib.out",std::_S_out);int x,y=1,k;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}S | ^~~~ main.cpp:2:120: error: 'S' does not name a type 2 | std::fstream f("kfib.in"),g("kfib.out",std::_S_out);int x,y=1,k;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}S | ^ Non zero exit status: 1

Ceva nu functioneaza?