Submission #29901

#TimeUsernameProblemLanguageResultExecution timeMemory
29901ozaslanGame (IOI13_game)C++14
0 / 100
0 ms33268 KiB
#include <bits/stdc++.h> #include <stdio.h> #include "game.h" #define max_N 1000 long long gcd2(long long X, long long Y) { //printf("X\n"); long long tmp; while (X != Y && Y != 0) { tmp = X; X = Y; Y = tmp % Y; } return X; } long long st[max_N][max_N * 4]; int sa, su; void init(int R, int C) { sa = R; su = C; } void update(int P, int Q, long long K) { // guncelle(1, 0, su-1, P, Q, K); } long long calculate(int P, int Q, int U, int V) { /* ... */ long long ekok;// = mat[P][Q]; return ekok; }

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;
      ^
game.cpp: In function 'long long int calculate(int, int, int, int)':
game.cpp:34:12: warning: 'ekok' is used uninitialized in this function [-Wuninitialized]
     return ekok;
            ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...