Submission #146119

#TimeUsernameProblemLanguageResultExecution timeMemory
146119youssefbou62Game (IOI13_game)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> // #include "game.h" using namespace std; using ll = long long ; const int N = 105 ; ll Mat[N][N] ; long long gcd2(long long X, long long Y) { long long tmp; while (X != Y && Y != 0) { tmp = X; X = Y; Y = tmp % Y; } return X; } void init(int R, int C) { /* ... */ } void update(int P, int Q, long long K) { /* ... */ Mat[P][Q]=K; } long long calculate(int P, int Q, int U, int V) { /* ... */ ll ans = 0 ; for(int i = P ; i<= U ; i++ ){ for(int j = Q;j<=V;j++ )ans = gcd2(ans,Mat[i][j]); } return ans; }

Compilation message (stderr)

grader.c: In function 'int main()':
grader.c:18:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
  int res;
      ^~~
/tmp/ccVIZzce.o: In function `main':
grader.c:(.text.startup+0x5d): undefined reference to `init'
grader.c:(.text.startup+0xb8): undefined reference to `calculate'
grader.c:(.text.startup+0x122): undefined reference to `update'
collect2: error: ld returned 1 exit status