Submission #1011724

#TimeUsernameProblemLanguageResultExecution timeMemory
1011724uranhishigHotter Colder (IOI10_hottercolder)C++14
Compilation error
0 ms0 KiB
#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){ Guess(N); }

Compilation message (stderr)

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