Borderou de evaluare (job #3202887)

Utilizator thinkphpAdrian Statescu thinkphp Data 12 februarie 2024 16:01:18
Problema Chiftea Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: 'ifstream' does not name a type 4 | ifstream in("chiftea.in"); | ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type 5 | ofstream out("chiftea.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:10:5: error: 'in' was not declared in this scope; did you mean 'n'? 10 | in>>t; | ^~ | n main.cpp:16:13: error: 'out' was not declared in this scope 16 | out<<4*x<<'\n'; | ^~~ main.cpp:18:13: error: 'out' was not declared in this scope 18 | out<<4*x+2<<'\n'; | ^~~ main.cpp:20:13: error: 'out' was not declared in this scope 20 | out<<4*x+4<<'\n'; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?