Submission #1254651

#TimeUsernameProblemLanguageResultExecution timeMemory
1254651minhpkCollapse (JOI18_collapse)C++20
Compilation error
0 ms0 KiB
#include "collapse.h" #include <bits/stdc++.h> #define int long long using namespace std; int a,b,c; vector<int> t; vector<int> z; vector<int> z1; vector<int> w; vector<int> w1; vector <int> res; map<pair<int,int>,int> m; struct edge{ int x,y,l,r; }; vector <edge> vec; vector<pair<int,int>> f[4000005]; void update(int id,int l,int r,int x,int y,pair<int,int> val){ if (x>r || y<l){ return; } if (l>=x && y>=r){ f[id].push_back(val); return; } int mid=(l+r)/2; update(id*2,l,mid,x,y,val); update(id*2+1,mid+1,r,x,y,val); } vector<int> simulateCollapse(int N, vector<int> T, vector<int> X, vector<int> Y, vector<int> W, vector<int> P) { int M = W.size(); vector<int> re(M, N); // // solve(N, M, T, X, Y, W, P, re); // for(int i=0;i<X.size();i++) X[i] = N-X[i]-1, Y[i] = N-Y[i]-1; // for(int i=0;i<M;i++) P[i] = N-P[i]-2; // solve(N, M, T, X, Y, W, P, re); return re; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccvQgkb1.o: in function `main':
grader.cpp:(.text.startup+0x259): undefined reference to `simulateCollapse(int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status