제출 #149876

#제출 시각아이디문제언어결과실행 시간메모리
149876준표야 함수컵은 캐리해줄거지? (#200)King of Chairs (FXCUP4_chairs)C++17
컴파일 에러
0 ms0 KiB
#include <vector> long long SendInfo(std::vector<int> W, std::vector<int> C);
#include "vassal.h" using namespace std; long long BB; int ans[100000]; void Init(long long B, std::vector<int> C){ int N = C.size(); BB = B; // ToDo } int Maid(int W){ if(W == BB%10) return 2; if(W == BB/100) return 0; return -1; }

컴파일 시 표준 에러 (stderr) 메시지

/tmp/ccZHw941.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

vassal.cpp: In function 'void Init(long long int, std::vector<int>)':
vassal.cpp:8:6: warning: unused variable 'N' [-Wunused-variable]
  int N = C.size();
      ^