Problem | mrt2 |
---|---|
User | Sans12345 |
Submission Time | 2024-12-04 15:49:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mrt2.cpp: In function ‘int main()’:
mrt2.cpp:24:53: error: no matching function for call to ‘edge::edge(int&, int&)’
24 | for(int i=1;i<=N;i++) edgelist[cnt++] = edge(i,i);
| ^
mrt2.cpp:5:8: note: candidate: ‘edge::edge()’
5 | struct edge{
| ^~~~
mrt2.cpp:5:8: note: candidate expects 0 arguments, 2 provided
mrt2.cpp:5:8: note: candidate: ‘constexpr edge::edge(const edge&)’
mrt2.cpp:5:8: note: candidate expects 1 argument, 2 provided
mrt2.cpp:5:8: note: candidate: ‘constexpr edge::edge(edge&&)’
mrt2.cpp:5:8: note: candidate expects 1 argument, 2 provided
mrt2.cpp:32:45: error: no matching function for call to ‘edge::edge(ll&, ll&)’
32 | edgelist[cnt] = edge(a[j],a[j+1]);
| ^
mrt2.cpp:5:8: note: candidate: ‘edge::edge()’
5 | struct edge{
| ^~~~
mrt2.cpp:5:8: note: