Borderou de evaluare (job #1634977)
Utilizator | Data | 6 martie 2016 14:46:54 | |
---|---|---|---|
Problema | Puzzle2 | Status | done |
Runda | ONIS 2016, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void solve2()’:
user.cpp:109:5: error: reference to ‘cout’ is ambiguous
cout << 1 << ' ' << N << '\n';
^
user.cpp:92:14: note: candidates are: std::ofstream cout
ofstream cout("puzzle2.out");
^
In file included from user.cpp:6:0:
/usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout
extern ostream cout; /// Linked to standard output
^
user.cpp:112:9: error: reference to ‘cout’ is ambiguous
cout << node << ' ';
^
user.cpp:92:14: note: candidates are: std::ofstream cout
ofstream cout("puzzle2.out");
^
In file included from user.cpp:6:0:
/usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout
extern ostream cout; /// Linked to standard output
^
user.cpp:121:5: error: reference to ‘cout’ is ambiguous
cout << end << '\n';
^
user.cpp:92:14: note: candidates are: std::ofstream cout
ofstream cout("puzzle2.out");
^
In file included from user.cpp:6:0:
/usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout
extern ostream cout; /// Linked to standard output
^
user.cpp: In function ‘std::vector<int> bfs(int, std::vector<int>&)’:
user.cpp:129:9: warning: unused variable ‘start’ [-Wunused-variable]
int start = node, end = -1;
^
user.cpp: In function ‘void solve()’:
user.cpp:176:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < path.size(); ++i) {
^
user.cpp:184:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < path.size(); ++i) {
^
user.cpp:188:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < path2.size(); ++i) {
^
user.cpp:193:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < path.size(); ++i) {
^
user.cpp:196:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < path2.size(); ++i) {
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !