Borderou de evaluare (job #3268655)
Utilizator | Data | 16 ianuarie 2025 17:20:44 | |
---|---|---|---|
Problema | Sate | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs1(int)':
main.cpp:12:3: error: 'vis1' was not declared in this scope; did you mean 'vis'?
12 | { vis1[k]=1;
| ^~~~
| vis
main.cpp:13:13: error: 'G1' was not declared in this scope; did you mean 'G'?
13 | for(int i : G1[k])
| ^~
| G
main.cpp: In function 'void bfs(int)':
main.cpp:22:7: error: 'class std::stack<int>' has no member named 'push_back'
22 | s.push_back(st);
| ^~~~~~~~~
main.cpp:28:23: error: expression cannot be used as a function
28 | p1=i.first();
| ~~~~~~~^~
main.cpp:29:24: error: expression cannot be used as a function
29 | p2=i.second();
| ~~~~~~~~^~
main.cpp:30:18: error: 'd' was not declared in this scope
30 | if (!d[p1])
| ^
main.cpp:32:34: error: 'dist' was not declared in this scope; did you mean 'st'?
32 | d[p1]+=d[nounod]+dist;
| ^~~~
| st
main.cpp:34:17: error: 'q' was not declared in this scope
34 | q.push(nextnod);
| ^
main.cpp:34:24: error: 'nextnod' was not declared in this scope
34 | q.push(nextnod);
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:43:14: error: 'd' was not declared in this scope
43 | f>>x>>y>>d;
| ^
main.cpp:44:19: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(<brace-enclosed initializer list>)'
44 | G[x].push_back({y,d}));
| ~~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/12.2.1/vector:64,
from /usr/include/c++/12.2.1/queue:61,
from main.cpp:3:
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
1276 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
1276 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
1293 | push_back(value_type&& __x)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !