제출 #134401

#제출 시각아이디문제언어결과실행 시간메모리
134401arthurconmyGame (IOI13_game)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#ifndef ARTHUR_LOCAL
	#include "game.h"
#endif
using namespace std;
using ll=long long;

ll grid[100][100];
int r,c;

void int(int r_r, int c_r)
{
	r=r_r;
	c=c_r;
}

void update(int p, int q, ll k)
{
	grid[p][q]=k;
}

ll calculate(int p, int q, int u, int v)
{
	ll cur_gcd = 0;

	for(int i=p; i<=q; i++)
	{
		for(int j=u; j<=v; j++)
		{
			cur_gcd = __gcd(cur_gcd,grid[i][j]);
		}
	}

	return cur_gcd;
}

컴파일 시 표준 에러 (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:11:10: error: expected unqualified-id before 'int'
 void int(int r_r, int c_r)
          ^~~
game.cpp:11:10: error: expected ')' before 'int'