Borderou de evaluare (job #3245674)

Utilizator PitigoiOlteanEmanuelPitigoi Oltean Emanuel PitigoiOlteanEmanuel Data 30 septembrie 2024 06:37:26
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:13: error: variable 'std::ifstream cin' has initializer but incomplete type 8 | ifstream cin("lca.in"); | ^ main.cpp:9:14: error: variable 'std::ofstream cout' has initializer but incomplete type 9 | ofstream cout("lca.out"); | ^ main.cpp: In function 'int main()': main.cpp:23:5: error: reference to 'cin' is ambiguous 23 | cin>>n>>q; | ^~~ In file included from main.cpp:1: /usr/include/c++/12.2.1/iostream:60:18: note: candidates are: 'std::istream std::cin' 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:8:10: note: '<typeprefixerror>cin' 8 | ifstream cin("lca.in"); | ^~~ main.cpp:27:9: error: reference to 'cin' is ambiguous 27 | cin>>v[0][i]; | ^~~ /usr/include/c++/12.2.1/iostream:60:18: note: candidates are: 'std::istream std::cin' 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:8:10: note: '<typeprefixerror>cin' 8 | ifstream cin("lca.in"); | ^~~ main.cpp:44:17: error: reference to 'cout' is ambiguous 44 | cout<<v[i][k]<<" "; | ^~~~ /usr/include/c++/12.2.1/iostream:61:18: note: candidates are: 'std::ostream std::cout' 61 | extern ostream cout; /// Linked to standard output | ^~~~ main.cpp:9:10: note: '<typeprefixerror>cout' 9 | ofstream cout("lca.out"); | ^~~~ main.cpp:46:13: error: reference to 'cout' is ambiguous 46 | cout<<'\n'; | ^~~~ /usr/include/c++/12.2.1/iostream:61:18: note: candidates are: 'std::ostream std::cout' 61 | extern ostream cout; /// Linked to standard output | ^~~~ main.cpp:9:10: note: '<typeprefixerror>cout' 9 | ofstream cout("lca.out"); | ^~~~ main.cpp:53:9: error: reference to 'cin' is ambiguous 53 | cin>>a>>b; | ^~~ /usr/include/c++/12.2.1/iostream:60:18: note: candidates are: 'std::istream std::cin' 60 | extern istream cin; /// Linked to standard input | ^~~ Non zero exit status: 1

Ceva nu functioneaza?