This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
oj.uz
답안 #54643
# 제출 시각UTC+9 아이디 문제 언어 결과 실행 시간 메모리
54643 2018-07-04 19:50:26 junhopark 비밀 (JOI14_secret) C++14
컴파일 오류
0 ms 0 KB
secret
#include <cstdio>
#include "secret.h"
using namespace std;
typedef long long LL;
int n, a[1005], tree[4005];
void start(int si, int ei, int ind)
{
if (si==ei) {
tree[ind] = a[si];
return;
}
int mi=(si+ei)>>1;
start(si, mi, ind<<1);
start(mi+1, ei, ind<<1|1);
tree[ind] = Secret(tree[ind<<1], tree[ind<<1|1]);
}
void init(int N, int A[])
{
int i;
n = N;
for (i=1; i<=n; i++) a[i]=A[i-1];
start(1, n, 1);
}
int get_ans(int si, int ei, int s, int e, int ind)
{
if (si>e||ei<s) return -1;
if (si>=s&&ei<=e) return tree[ind];
int mi = (si+ei)>>1, l, r;
l = get_ans(si, mi, s, e, ind<<1);
r = get_ans(mi+1, ei, s, e, ind<<1|1);
if (l<0&&r<0) return -1;
if (l<0) return r;
if (r<0) return l;
return Secret(l, r);
}
int Query(int L, int R)
{
return get_ans(1, n, L+1, R+1, 1);
}
Compilation message (stderr)
secret.cpp:2:1: error: stray '\353' in program
답안 #54643
^
secret.cpp:2:2: error: stray '\213' in program
답안 #54643
^
secret.cpp:2:3: error: stray '\265' in program
답안 #54643
^
secret.cpp:2:4: error: stray '\354' in program
답안 #54643
^
secret.cpp:2:5: error: stray '\225' in program
답안 #54643
^
secret.cpp:2:6: error: stray '\210' in program
답안 #54643
^
secret.cpp:2:8: error: stray '#' in program
답안 #54643
^
secret.cpp:3:3: error: invalid preprocessing directive #
# 제출 시각UTC+9 아이디 문제 언어 결과 실행 시간 메모리
^
secret.cpp:4:37: error: stray '\353' in program
54643 2018-07-04 19:50:26 junhopark 비밀 (JOI14_secret) C++14
^
secret.cpp:4:38: error: stray '\271' in program
54643 2018-07-04 19:50:26 junhopark 비밀 (JOI14_secret) C++14
^
secret.cpp:4:39: error: stray '\204' in program
54643 2018-07-04 19:50:26 junhopark 비밀 (JOI14_secret) C++14
^
secret.cpp:4:40: error: stray '\353' in program
54643 2018-07-04 19:50:26 junhopark 비밀 (JOI14_secret) C++14
^
secret.cpp:4:41: error: stray '\260' in program
54643 2018-07-04 19:50:26 junhopark 비밀 (JOI14_secret) C++14
^
secret.cpp:4:42: error: stray '\200' in program
54643 2018-07-04 19:50:26 junhopark 비밀 (JOI14_secret) C++14
^
secret.cpp:5:1: error: stray '\354' in program
컴파일 오류
^
secret.cpp:5:2: error: stray '\273' in program
컴파일 오류
^
secret.cpp:5:3: error: stray '\264' in program
컴파일 오류
^
secret.cpp:5:4: error: stray '\355' in program
컴파일 오류
^
secret.cpp:5:5: error: stray '\214' in program
컴파일 오류
^
secret.cpp:5:6: error: stray '\214' in program
컴파일 오류
^
secret.cpp:5:7: error: stray '\354' in program
컴파일 오류
^
secret.cpp:5:8: error: stray '\235' in program
컴파일 오류
^
secret.cpp:5:9: error: stray '\274' in program
컴파일 오류
^
secret.cpp:5:11: error: stray '\354' in program
컴파일 오류
^
secret.cpp:5:12: error: stray '\230' in program
컴파일 오류
^
secret.cpp:5:13: error: stray '\244' in program
컴파일 오류
^
secret.cpp:5:14: error: stray '\353' in program
컴파일 오류
^
secret.cpp:5:15: error: stray '\245' in program
컴파일 오류
^
secret.cpp:5:16: error: stray '\230' in program
컴파일 오류
^
secret.cpp:1:1: error: 'oj' does not name a type
oj.uz
^~