제출 #77261

#제출 시각아이디문제언어결과실행 시간메모리
77261MohamedAhmed0비밀 (JOI14_secret)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std ; #include "secret.h" int arr[100001] ; #define MAX_VALUE 1000000000 void Init(int N, int A[]) { for(int i = 0 ; i < N ; ++i) arr[i] = A[i] ; } int Query(int l, int r) { int x = arr[l] ; for(int i = l+1 ; i <= r ; ++i) { int X = x , Y = arr[i] ; x = (X + 2 * (Y / 2) < MAX_VALUE) ? (X + 2 * (Y / 2)) : MAX_VALUE } return x ; }

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

secret.cpp: In function 'int Query(int, int)':
secret.cpp:19:5: error: expected ';' before '}' token
     }
     ^