답안 #1078268

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1078268 2024-08-27T14:42:44 Z Marco_Escandon 마술쇼 (APIO24_show) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
typedef int ll;
std::vector<std::pair<int,int>> Alice(){
    long long x = setN(5000);
	ll n=5000;
	vector<pair<ll,ll>> temp;
	for(int i=1; i<n; i++)
	{
		temp.push_back({i,n});
	}
    return temp;
}



    

Compilation message

Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:6:19: error: 'setN' was not declared in this scope
    6 |     long long x = setN(5000);
      |                   ^~~~
Alice.cpp:6:15: warning: unused variable 'x' [-Wunused-variable]
    6 |     long long x = setN(5000);
      |               ^

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