Didesnis - gudresnis?
- [1] 2020-03-21 13:29 (0)
- [2] 2020-03-21 13:29 (0)
- [3] 2020-03-21 13:42 (10)
- [4] 2020-03-21 13:45 (100)
Taškai: 0
Compile: FAIL
drambliai.cpp: In function ‘int main(int, const char**)’: drambliai.cpp:22:9: error: reference to ‘cin’ is ambiguous cin>>n; ^ drambliai.cpp:13:10: note: candidates are: std::ifstream cin ifstream cin("drambliai.in"); ^ In file included from drambliai.cpp:9:0: /usr/include/c++/5/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ drambliai.cpp:26:13: error: reference to ‘cin’ is ambiguous cin>>svoris>>intel; ^ drambliai.cpp:13:10: note: candidates are: std::ifstream cin ifstream cin("drambliai.in"); ^ In file included from drambliai.cpp:9:0: /usr/include/c++/5/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ drambliai.cpp:44:9: error: reference to ‘cout’ is ambiguous cout<<ats; ^ drambliai.cpp:14:10: note: candidates are: std::ofstream cout ofstream cout("drambliai.out"); ^ In file included from drambliai.cpp:9:0: /usr/include/c++/5/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
nr. | result | time | message |
---|