실행 실패 (제출 코드 컴파일 에러)
Main.cpp:6:1: error: expected initializer before ‘long’ 6 | long long int Tree[MAX_N * 4 + 1]; | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:12:24: error: ‘n’ was not declared in this scope 12 | for(i = 1; i < n; i++) scanf("%d", &A[i]); | ^ Main.cpp:14:13: error: ‘T’ was not declared in this scope 14 | for(T = 1; T < N; T *= 2); | ^ Main.cpp:15:9: error: ‘T’ was not declared in this scope 15 | T = 2 * T - 1; | ^ Main.cpp:17:35: error: expected primary-expression before ‘)’ token 17 | for(i = 1; i <= M + K; i==) { | ^ Main.cpp:21:25: error: ‘Tree’ was not declared in this scope 21 | Tree[idx] = c; | ^~~~ Main.cpp:32:55: error: ‘Tree’ was not declared in this scope 32 | if(l % 2 == 1) sum += Tree[l]; | ^~~~ Main.cpp:33:55: error: ‘Tree’ was not declared in this scope 33 | if(r % 2 == 0) sum += Tree[r]; | ^~~~ Main.cpp:37:32: warning: too many arguments for format [-Wformat-extra-args] 37 | printf("&lld\n", sum); | ^~~~~~~~ Main.cpp:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d", &N); | ~~~~~^~~~~~~~~~ Main.cpp:12:37: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | for(i = 1; i < n; i++) scanf("%d", &A[i]); | ~~~~~^~~~~~~~~~~~~ Main.cpp:18:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%d%lld%lld", &a, &b, &c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.