Aštuonių valdovių uždavinys

Taškai: 0

Compile: FAIL

valdoves.cpp: In function ‘void printAns(int)’: valdoves.cpp:96:17: error: reference to ‘cout’ is ambiguous cout<<'V'; ^ valdoves.cpp:8:10: note: candidates are: std::ofstream cout ofstream cout("valdoves.out"); ^ In file included from valdoves.cpp:1:0: /usr/include/c++/5/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ valdoves.cpp:98:17: error: reference to ‘cout’ is ambiguous cout<<'.'; ^ valdoves.cpp:8:10: note: candidates are: std::ofstream cout ofstream cout("valdoves.out"); ^ In file included from valdoves.cpp:1:0: /usr/include/c++/5/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ valdoves.cpp:100:9: error: reference to ‘cout’ is ambiguous cout<<endl; ^ valdoves.cpp:8:10: note: candidates are: std::ofstream cout ofstream cout("valdoves.out"); ^ In file included from valdoves.cpp:1:0: /usr/include/c++/5/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ valdoves.cpp: In function ‘int main()’: valdoves.cpp:106:12: error: reference to ‘cin’ is ambiguous int n; cin>>n; ^ valdoves.cpp:7:10: note: candidates are: std::ifstream cin ifstream cin("valdoves.in"); ^ In file included from valdoves.cpp:1:0: /usr/include/c++/5/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ valdoves.cpp:109:5: error: reference to ‘cout’ is ambiguous cout<<sum<<endl; ^ valdoves.cpp:8:10: note: candidates are: std::ofstream cout ofstream cout("valdoves.out"); ^ In file included from valdoves.cpp:1:0: /usr/include/c++/5/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^

nr.resulttimemessage