Borderou de evaluare (job #2769530)

Utilizator PatrickvasileSoltan Cristian Patrickvasile Data 16 august 2021 16:02:27
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:1: error: 'string' does not name a type string fname = "elmaj"; ifstream in (cautbin + ".in"); ofstream out (cautbin + ".out"); ^~~~~~ main.cpp:3:25: error: 'ifstream' does not name a type string fname = "elmaj"; ifstream in (cautbin + ".in"); ofstream out (cautbin + ".out"); ^~~~~~~~ main.cpp:3:56: error: 'ofstream' does not name a type string fname = "elmaj"; ifstream in (cautbin + ".in"); ofstream out (cautbin + ".out"); ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:4:13: error: 'in' was not declared in this scope #define cin in ^ main.cpp:69:5: note: in expansion of macro 'cin' cin >> n; ^~~ main.cpp:5:14: error: 'out' was not declared in this scope #define cout out ^ main.cpp:80:13: note: in expansion of macro 'cout' cout << st(r, n, a) << endl; ^~~~ main.cpp:5:14: error: 'out' was not declared in this scope #define cout out ^ main.cpp:83:13: note: in expansion of macro 'cout' cout << nd(r, n, a) << endl; ^~~~ main.cpp:5:14: error: 'out' was not declared in this scope #define cout out ^ main.cpp:86:13: note: in expansion of macro 'cout' cout << rd(r, n, a) << endl; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?