Submission #613251

#TimeUsernameProblemLanguageResultExecution timeMemory
613251ajpianoKing of Chairs (FXCUP4_chairs)C++17
Compilation error
0 ms0 KiB
#include "king.h" using namespace std; long long SendInfo(vector<int> W, vector<int> C){ return 0; }
#include <bits/stdc++.h> #include "vassal.h" using namespace std; set<pair<int,int>> chairs; //weight index void Init(int B, vector<int> c){ int n = c.size(); for(int i = 0; i < n; i++){ chairs.insert({c[i],i}); } } int Maid(int w){ auto it = chairs.lower_bound({w,0}); if(it == chairs.end()) return -1; else{ int ans = it->second; chairs.erase(it); return ans; } }

Compilation message (stderr)

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