제출 #1345600

#제출 시각아이디문제언어결과실행 시간메모리
1345600FaresSTH3개의 봉우리 (IOI25_triples)C++20
컴파일 에러
0 ms0 KiB
#include"bits/stdc++.h"
using namespace std;
using ll=long long;
#define S second
#define F first
ll count_triples(vector<int>h);
vector<int>construct_range(int n,int k){
	vector<int>res;
	while(res.size()+5<=n){
		res.push_back(2);
		res.push_back(1);
		res.push_back(3);
		res.push_back(1);
		res.push_back(2);
	}
	return res;
}

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

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