Aštuonių valdovių uždavinys
- [1] 2018-12-03 16:42 (0)
- [2] 2018-12-08 14:46 (84.6)
- [3] 2018-12-08 14:53 (0)
- [4] 2018-12-08 14:54 (100)
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. | result | time | message |
---|