답안 #1011725

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1011725 2024-07-01T07:37:37 Z uranhishig Hotter Colder (IOI10_hottercolder) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
#define int long long

typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> pii;
typedef vector<pii> vii;
typedef double dl;

#define f first
#define s second
#define mp make_pair
#define pb push_back
#define all(a) (a).begin(),(a).end()
#define sz(x) (int)x.size()
#define mid(l,r) ((r+l)/2)
#define left(node) (node*2)
#define right(node) (node*2+1)
#define mx_int_prime 999999937
#define mod 1000000007
#define mem(a,b) memset(a, b, sizeof(a) )
#define gcd(a,b) __gcd(a,b)
#define lcm(a, b) (a * b) / gcd(a, b)
#define sqr(a) ((a) * (a))
#define faster cin.tie(0)->sync_with_stdio(0)
#define print(x) cout << x << "\n"
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep1(i, n) for(int i = 1; i <= (n); i++)
#define yes cout << "YES" << endl;
#define no cout << "NO" << endl;
int Guess(int G);
 
//int run(int L, int R) {
//    if(L == R){
//    	return 1;
//	}
//}

int HC(int N){
   Guess(N);
}

Compilation message

hottercolder.cpp: In function 'long long int HC(long long int)':
hottercolder.cpp:43:1: warning: no return statement in function returning non-void [-Wreturn-type]
   43 | }
      | ^
/usr/bin/ld: /tmp/cckwpYpB.o: in function `HC(long long)':
hottercolder.cpp:(.text+0xb): undefined reference to `Guess(long long)'
/usr/bin/ld: /tmp/ccoS2TQy.o: in function `main':
grader.cpp:(.text.startup+0x1ba): undefined reference to `HC(int)'
collect2: error: ld returned 1 exit status