Borderou de evaluare (job #613690)

Utilizator avatar stefan5I stef stefan stefan5I IP ascuns
Problemă Aranjamente (clasele 7 - 8) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 1 nov. 2021 22:18:56 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:13: error: variable 'std::ifstream cin' has initializer but incomplete type 5 | ifstream cin("aranjamente.in"); | ^ main.cpp:6:14: error: variable 'std::ofstream cout' has initializer but incomplete type 6 | ofstream cout("aranjamente.out"); | ^ main.cpp: In function 'int main()': main.cpp:36:5: error: reference to 'cin' is ambiguous 36 | cin>>n>>k>>p; | ^~~ In file included from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/iostream:60:18: note: candidates are: 'std::istream std::cin' 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:5:10: note: '<typeprefixerror>cin' 5 | ifstream cin("aranjamente.in"); | ^~~ main.cpp:47:5: error: reference to 'cout' is ambiguous 47 | cout<<maxx; | ^~~~ In file included from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/iostream:61:18: note: candidates are: 'std::ostream std::cout' 61 | extern ostream cout; /// Linked to standard output | ^~~~ main.cpp:6:10: note: '<typeprefixerror>cout' 6 | ofstream cout("aranjamente.out"); | ^~~~