답안 #150829

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
150829 2019-09-01T08:58:21 Z 모현보유국(#3693, jhnah917, stonejjun03, ahgus89) 십자가 놓기 (FXCUP4_cross) C++17
컴파일 오류
0 ms 0 KB
#include "cross.h"

typedef long long ll;

long long SelectCross(int K, std::vector<ll> I, std::vector<ll> O) {
	int n = I.size();
	ll ans = O[0] * O[0];
	ll tmp = O[0] - I[0];
	ans -= tmp * tmp;
	return ans;
}

Compilation message

cross.cpp: In function 'long long int SelectCross(int, std::vector<long long int>, std::vector<long long int>)':
cross.cpp:6:6: warning: unused variable 'n' [-Wunused-variable]
  int n = I.size();
      ^
/tmp/ccfvfnQk.o: In function `main':
grader.cpp:(.text.startup+0x197): undefined reference to `SelectCross(int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status