답안 #117704

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
117704 2019-06-17T06:51:14 Z imsifile King of Chairs (FXCUP4_chairs) C++17
컴파일 오류
0 ms 0 KB
#include "king.h"

long long SendInfo(int N, std::vector<int> W, std::vector<int> C) {
	return (1<<40)-1;
}
#include "vassal.h"
#include <set>
using namespace std;

set<pair<int,int>> sets;

void Init(int N, long long B, std::vector<int> C){
	for(int i=0; i<N; i++) sets.insert(make_pair(C[i],i+1));
}

int Maid(int W){
	auto it = sets.lower_bound(make_pair(W,0));
	if(it == sets.end()) return 0;
	int v=it->second; sets.erase(it);
	return v;
}

Compilation message

king.cpp: In function 'long long int SendInfo(int, std::vector<int>, std::vector<int>)':
king.cpp:4:13: warning: left shift count >= width of type [-Wshift-count-overflow]
  return (1<<40)-1;
             ^~
/tmp/ccnuKVsI.o: In function `main':
grader_k.cpp:(.text.startup+0x14c): undefined reference to `SendInfo(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status

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