Submission #150829

#TimeUsernameProblemLanguageResultExecution timeMemory
150829모현보유국 (#200)Crosses on the Grid (FXCUP4_cross)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

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