Borderou de evaluare (job #3210502)
Utilizator | Munteanu Stefan Catalin smunteanu | Data | 6 martie 2024 13:18:38 |
---|---|---|---|
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:2:32: error: expression list treated as compound expression in initializer [-fpermissive]
2 | auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}
| ^
main.cpp:2:8: warning: left operand of comma operator has no effect [-Wunused-value]
2 | auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}
| ^~~~~~~~~~
main.cpp:2:32: error: expression list treated as compound expression in initializer [-fpermissive]
2 | auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}
| ^
main.cpp:2:8: warning: left operand of comma operator has no effect [-Wunused-value]
2 | auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}
| ^~~~~~~~~~
main.cpp:2:1: error: inconsistent deduction for 'auto': 'std::_Ios_Openmode' and then 'const char*'
2 | auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}
| ^~~~
main.cpp:2:59: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:71: error: invalid operands of types 'const char*' and 'int' to binary 'operator>>'
2 | auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}
| ~^~~
| | |
| | int
| const char*
main.cpp:2:109: warning: statement has no effect [-Wunused-value]
2 | auto g("kfib.out",std::ios::out),f("kfib.in");int k,x,y=1;main(){for(f>>k;k--%1332028;x=y-x,y%=666013)y+=x;g<<x;}
| ~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !