Submission #1011721

# Submission time Handle Problem Language Result Execution time Memory
1011721 2024-07-01T07:31:53 Z uranhishig Hotter Colder (IOI10_hottercolder) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.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){
   return run(1, N);
}

Compilation message

hottercolder.cpp: In function 'long long int run(long long int, long long int)':
hottercolder.cpp:38:1: warning: control reaches end of non-void function [-Wreturn-type]
   38 | }
      | ^
/usr/bin/ld: /tmp/ccgu3dmt.o: in function `main':
grader.cpp:(.text.startup+0x1ba): undefined reference to `HC(int)'
collect2: error: ld returned 1 exit status