Borderou de evaluare (job #2908533)

Utilizator cadmium_Voicu Mihai Valeriu cadmium_ Data 4 iunie 2022 10:31:21
Problema Bitcost Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:3: error: 'ifstream' does not name a type 5 | ifstream cin("bitcost.in"); | ^~~~~~~~ main.cpp:6:3: error: 'ofstream' does not name a type 6 | ofstream cout("bitcost.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:3:15: error: 'fin' was not declared in this scope; did you mean 'sin'? 3 | #define cin fin | ^~~ main.cpp:40:3: note: in expansion of macro 'cin' 40 | cin >> k >> q; | ^~~ main.cpp:4:16: error: 'fout' was not declared in this scope; did you mean 'cout'? 4 | #define cout fout | ^~~~ main.cpp:48:5: note: in expansion of macro 'cout' 48 | cout << getcost(l, r, k - 1) << '\n'; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?