제출 #1057115

#제출 시각아이디문제언어결과실행 시간메모리
1057115manhlinh1501비밀 (JOI14_secret)C++17
컴파일 에러
0 ms0 KiB
#ifdef ONLINE_JUDGE #include "secret.h" #endif // ONLINE_JUDGE #include <bits/stdc++.h> using namespace std; using i64 = long long; const i64 MOD = 1e9 + 7; const int MAXN = 1e3 + 5; int N; int a[MAXN]; int sum[MAXN][MAXN]; void Init(int N, int A[]) { for(int i = 1; i <= N; i++) { sum[i][i] = a[i]; for(int j = i + 1; j <= N; j++) { sum[i][j] = Secret(sum[i][j - 1], a[j]); } } } int Query(int L, int R) { return sum[L][R]; }

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

secret.cpp: In function 'void Init(int, int*)':
secret.cpp:18:25: error: 'Secret' was not declared in this scope
   18 |             sum[i][j] = Secret(sum[i][j - 1], a[j]);
      |                         ^~~~~~