Submission #150829

# Submission time Handle Problem Language Result Execution time Memory
150829 2019-09-01T08:58:21 Z 모현보유국(#3693, jhnah917, stonejjun03, ahgus89) Crosses on the Grid (FXCUP4_cross) C++17
Compilation error
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