Borderou de evaluare (job #3371883)

Utilizator oliv_1Bostinescu Octavian oliv_1 Data 1 noiembrie 2026 15:17:07
Problema Hotel Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void intquer(int, int, int)': main.cpp:105:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 105 | if(nodcur>=n) | ^~ main.cpp:107:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 107 | push(nodcur); | ^~~~ main.cpp: In function 'int main()': main.cpp:155:5: error: reference to 'cin' is ambiguous 155 | cin>>n>>p; | ^~~ 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:4:10: note: 'std::ifstream cin' 4 | ifstream cin("hotel.in"); | ^~~ main.cpp:160:9: error: reference to 'cin' is ambiguous 160 | cin>> cer; | ^~~ /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:4:10: note: 'std::ifstream cin' 4 | ifstream cin("hotel.in"); | ^~~ main.cpp:163:13: error: reference to 'cin' is ambiguous 163 | cin>>x>>m; | ^~~ /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:4:10: note: 'std::ifstream cin' 4 | ifstream cin("hotel.in"); | ^~~ main.cpp:168:13: error: reference to 'cin' is ambiguous 168 | cin>>x>>m; | ^~~ /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:4:10: note: 'std::ifstream cin' 4 | ifstream cin("hotel.in"); | ^~~ main.cpp:172:13: error: reference to 'cout' is ambiguous 172 | cout<<ans(1, cn)<<'\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 Non zero exit status: 1

Ceva nu functioneaza?