Submission #613251

# Submission time Handle Problem Language Result Execution time Memory
613251 2022-07-30T04:10:44 Z ajpiano King of Chairs (FXCUP4_chairs) C++17
Compilation error
0 ms 0 KB
#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

/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