제출 #145855

#제출 시각아이디문제언어결과실행 시간메모리
145855j07801일차 함수 (tutorial4)C++14
컴파일 에러
0 ms0 KiB
#include<stdio.h>
#include<algorithm>
#include "grader.h"
using namespace std;

int gcd(int a, int b){
	while (b != 0){
		int r = a%b;
		a = b;
		b = r;
	}
	return a;
}

int lcm(int a, int b){
	return a * b / gcd(a, b);
}

int solve(){
	int a, b;
	int a1, b1;
	a = f(1);
	b = f(2);
	a = a * 2;
	b1 = a - b;
	a1 = (b - b1) / 2

		Report(a1, b1);
	return 0;
}

컴파일 시 표준 에러 (stderr) 메시지

tutorial4.cpp: In function 'int solve()':
tutorial4.cpp:28:3: error: expected ';' before 'Report'
   Report(a1, b1);
   ^~~~~~