제출 #1370610

#제출 시각아이디문제언어결과실행 시간메모리
1370610n.bahizi_dylanDetecting Molecules (IOI16_molecules)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define v vector
#define pb push_back
typedef long long ll;
v<int> find_subset(int l , int u, v<int>& we) {
  int n = we.size();
  for(int i = 0; i < n; i++) {
    ll su = 0;
    for(int j = i; j < n; j++) {
        su += we[j];
        if(su <= u && su >= l) {
            return{i, j};
        }
    }
  }
  return {};
}

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

/usr/bin/ld: /tmp/ccCcRoMq.o: in function `main':
grader.cpp:(.text.startup+0x165): undefined reference to `find_subset(int, int, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status