Klajonė

Taškai: 0

Compile: FAIL

klajone.cpp: In function ‘void gen(int)’: klajone.cpp:52:13: error: reference to ‘cout’ is ambiguous 52 | cout << x + y; | ^~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from klajone.cpp:1: /usr/include/c++/11/iostream:61:18: note: candidates are: ‘std::ostream std::cout’ 61 | extern ostream cout; /// Linked to standard output | ^~~~ klajone.cpp:8:10: note: ‘std::ofstream cout’ 8 | ofstream cout("klajone.out"); | ^~~~ klajone.cpp:90:17: error: reference to ‘cout’ is ambiguous 90 | cout << "Infinity\n"; | ^~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from klajone.cpp:1: /usr/include/c++/11/iostream:61:18: note: candidates are: ‘std::ostream std::cout’ 61 | extern ostream cout; /// Linked to standard output | ^~~~ klajone.cpp:8:10: note: ‘std::ofstream cout’ 8 | ofstream cout("klajone.out"); | ^~~~ klajone.cpp: In function ‘int main()’: klajone.cpp:191:5: error: reference to ‘cin’ is ambiguous 191 | cin.tie(nullptr); | ^~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from klajone.cpp:1: /usr/include/c++/11/iostream:60:18: note: candidates are: ‘std::istream std::cin’ 60 | extern istream cin; /// Linked to standard input | ^~~ klajone.cpp:7:10: note: ‘std::ifstream cin’ 7 | ifstream cin("klajone.in"); | ^~~ klajone.cpp:194:5: error: reference to ‘cin’ is ambiguous 194 | cin >> n; | ^~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from klajone.cpp:1: /usr/include/c++/11/iostream:60:18: note: candidates are: ‘std::istream std::cin’ 60 | extern istream cin; /// Linked to standard input | ^~~ klajone.cpp:7:10: note: ‘std::ifstream cin’ 7 | ifstream cin("klajone.in"); | ^~~ klajone.cpp:197:9: error: reference to ‘cin’ is ambiguous 197 | cin >> F[i].k; | ^~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from klajone.cpp:1: /usr/include/c++/11/iostream:60:18: note: candidates are: ‘std::istream std::cin’ 60 | extern istream cin; /// Linked to standard input | ^~~ klajone.cpp:7:10: note: ‘std::ifstream cin’ 7 | ifstream cin("klajone.in"); | ^~~ klajone.cpp:200:13: error: reference to ‘cin’ is ambiguous 200 | cin >> s; | ^~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from klajone.cpp:1: /usr/include/c++/11/iostream:60:18: note: candidates are: ‘std::istream std::cin’ 60 | extern istream cin; /// Linked to standard input | ^~~ klajone.cpp:7:10: note: ‘std::ifstream cin’ 7 | ifstream cin("klajone.in"); | ^~~ klajone.cpp:213:9: error: reference to ‘cout’ is ambiguous 213 | cout << "Infinity\n"; | ^~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from klajone.cpp:1: /usr/include/c++/11/iostream:61:18: note: candidates are: ‘std::ostream std::cout’ 61 | extern ostream cout; /// Linked to standard output | ^~~~ klajone.cpp:8:10: note: ‘std::ofstream cout’ 8 | ofstream cout("klajone.out"); | ^~~~ klajone.cpp:219:5: error: reference to ‘cout’ is ambiguous 219 | cout << x + y; | ^~~~ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75, from klajone.cpp:1: /usr/include/c++/11/iostream:61:18: note: candidates are: ‘std::ostream std::cout’ 61 | extern ostream cout; /// Linked to standard output | ^~~~ klajone.cpp:8:10: note: ‘std::ofstream cout’ 8 | ofstream cout("klajone.out"); | ^~~~

nr.resulttimemessage