Submission #292576

# Submission time Handle Problem Language Result Execution time Memory
292576 2020-09-07T09:54:08 Z crossing0ver Game (IOI13_game) C++17
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
#define ll long long
#include "game.h"
using namespace std;
ll gcd2(ll X, ll Y) {
    long long tmp;
    while (X != Y && Y != 0) {
        tmp = X;
        X = Y;
        Y = tmp % Y;
    }
    return X;
}


 
void update(int P, int Q, long long K) {

}
 
long long calculate(int P, int Q, int U, int V) {
  return 1LL;
}

Compilation message

grader.c: In function 'int main()':
grader.c:25:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   25 |     while(res != 1);
      |     ^~~~~
grader.c:26:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   26 |  res = fscanf(f, "%d", &C);
      |  ^~~
grader.c:27:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   27 |     while(res != 1);
      |     ^~~~~
grader.c:28:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   28 |  res = fscanf(f, "%d", &N);
      |  ^~~
/tmp/ccATdztx.o: In function `main':
grader.c:(.text.startup+0x7d): undefined reference to `init'
collect2: error: ld returned 1 exit status