Borderou de evaluare (job #2952144)
Utilizator | Data | 8 decembrie 2022 16:31:20 | |
---|---|---|---|
Problema | Pitici | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:71:22: error: request for member 'begin' in 'topoSort', which is of non-class type 'void(int)'
71 | reverse(topoSort.begin(), topoSort.end());
| ^~~~~
main.cpp:71:40: error: request for member 'end' in 'topoSort', which is of non-class type 'void(int)'
71 | reverse(topoSort.begin(), topoSort.end());
| ^~~
main.cpp:85:16: error: 'class std::priority_queue<object>' has no member named 'push_back'
85 | pq.push_back({dp[adjT[nod][i]][ind[i]], i});
| ^~~~~~~~~
main.cpp:85:29: error: no match for 'operator[]' (operand types are 'int [1021][1021]' and '__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type' {aka 'Node'})
85 | pq.push_back({dp[adjT[nod][i]][ind[i]], i});
| ^
main.cpp:92:46: error: no match for 'operator[]' (operand types are 'int [1021][1021]' and '__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type' {aka 'Node'})
92 | dp[nod][i] = forUpdate.val + Cost[adjT[nod][forUpdate.ind]][nod];
| ^
main.cpp:94:16: error: no match for 'operator[]' (operand types are 'std::vector<int>' and '__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type' {aka 'Node'})
94 | ind[adjT[nod][forUpdate.ind]]++;
| ^
In file included from /usr/include/c++/10/vector:67,
from main.cpp:8:
/usr/include/c++/10/bits/stl_vector.h:1043:7: note: candidate: 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
1043 | operator[](size_type __n) _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1043:28: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type' {aka 'Node'} to 'std::vector<int>::size_type' {aka 'long unsigned int'}
1043 | operator[](size_type __n) _GLIBCXX_NOEXCEPT
| ~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_vector.h:1061:7: note: candidate: 'std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::const_reference = const int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
1061 | operator[](size_type __n) const _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/10/bits/stl_vector.h:1061:28: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type' {aka 'Node'} to 'std::vector<int>::size_type' {aka 'long unsigned int'}
1061 | operator[](size_type __n) const _GLIBCXX_NOEXCEPT
| ~~~~~~~~~~^~~
main.cpp:95:31: error: no match for 'operator[]' (operand types are 'int [1021][1021]' and '__gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type' {aka 'Node'})
95 | forUpdate.val = dp[adjT[nod][i]][ind[i]];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !