Borderou de evaluare (job #734808)

Utilizator avatar Dumy Dumitrescu Andrei Dumy IP ascuns
Problemă Nenepatrat (clasa a 9-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 1 oct. 2023 14:43:31 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:1: error: 'ifstream' does not name a type 3 | ifstream in("nenepatrat.in"); | ^~~~~~~~ main.cpp:4:1: error: 'ofstream' does not name a type 4 | ofstream out("nenepatrat.out") | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:11:5: error: 'in' was not declared in this scope; did you mean 'n'? 11 | in >> n; | ^~ | n main.cpp:43:5: error: 'out' was not declared in this scope 43 | out<<(nd+1)/2-sp; | ^~~ main.cpp:10:12: warning: unused variable 'counter' [-Wunused-variable] 10 | int n, counter =0, sp=1, nd =1; | ^~~~~~~