Borderou de evaluare (job #2505019)

Utilizator VladG26Ene Vlad-Mihai VladG26 Data 6 decembrie 2019 00:49:03
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dij(int, int)': main.cpp:35:22: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') cout<<dist[i]==INF ? 0 : dist[i]<<" "; ^ main.cpp:35:22: note: candidate: operator==(int, int) <built-in> main.cpp:35:22: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int' In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:2: /usr/include/c++/6/bits/regex.h:940:5: note: candidate: template<class _BiIter> bool std::__cxx11::operator==(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&) operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) ^~~~~~~~ /usr/include/c++/6/bits/regex.h:940:5: note: template argument deduction/substitution failed: main.cpp:7:13: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' #define INF 1000003 ^ main.cpp:35:24: note: in expansion of macro 'INF' cout<<dist[i]==INF ? 0 : dist[i]<<" "; ^~~ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:2: /usr/include/c++/6/bits/regex.h:1013:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&) operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, ^~~~~~~~ /usr/include/c++/6/bits/regex.h:1013:5: note: template argument deduction/substitution failed: main.cpp:7:13: note: 'std::basic_ostream<char>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' #define INF 1000003 ^ main.cpp:35:24: note: in expansion of macro 'INF' cout<<dist[i]==INF ? 0 : dist[i]<<" "; ^~~ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:2: /usr/include/c++/6/bits/regex.h:1093:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&) operator==(const sub_match<_Bi_iter>& __lhs, ^~~~~~~~ /usr/include/c++/6/bits/regex.h:1093:5: note: template argument deduction/substitution failed: main.cpp:7:13: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' #define INF 1000003 ^ main.cpp:35:24: note: in expansion of macro 'INF' cout<<dist[i]==INF ? 0 : dist[i]<<" "; ^~~ In file included from /usr/include/c++/6/regex:62:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:110, from main.cpp:2: /usr/include/c++/6/bits/regex.h:1173:5: note: candidate: template<class _Bi_iter> bool std::__cxx11::operator==(const typename std::iterator_traits<_Iter>::value_type*, const std::__cxx11::sub_match<_BiIter>&) operator==(typename iterator_traits<_Bi_iter>::value_type const* __lhs, Non zero exit status: 1

Ceva nu functioneaza?