제출 #47798
제출 정보
실행 실패 (제출 코드 컴파일 에러)
Main.cpp:5:8: error: ‘__int64’ was not declared in this scope; did you mean ‘__int64_t’? 5 | vector<__int64>tree; | ^~~~~~~ | __int64_t Main.cpp:5:15: error: template argument 1 is invalid 5 | vector<__int64>tree; | ^ Main.cpp:5:15: error: template argument 2 is invalid Main.cpp:6:1: error: ‘__int64’ does not name a type; did you mean ‘__int64_t’? 6 | __int64 n = 0, target, mid, l, r, larger = 0; | ^~~~~~~ | __int64_t Main.cpp: In function ‘int main()’: Main.cpp:9:16: error: ‘n’ was not declared in this scope 9 | cin >> n >> target; | ^ Main.cpp:9:21: error: ‘target’ was not declared in this scope 9 | cin >> n >> target; | ^~~~~~ Main.cpp:13:22: error: request for member ‘push_back’ in ‘tree’, which is of non-class type ‘int’ 13 | tree.push_back(x); | ^~~~~~~~~ Main.cpp:14:25: error: ‘larger’ was not declared in this scope 14 | if (x > larger)larger = x; | ^~~~~~ Main.cpp:17:9: error: ‘l’ was not declared in this scope 17 | l = 0; | ^ Main.cpp:18:9: error: ‘r’ was not declared in this scope 18 | r = larger; | ^ Main.cpp:18:13: error: ‘larger’ was not declared in this scope 18 | r = larger; | ^~~~~~ Main.cpp:19:9: error: ‘mid’ was not declared in this scope 19 | mid = (l + r) / 2; | ^~~ Main.cpp:22:17: error: ‘__int64’ was not declared in this scope; did you mean ‘__int64_t’? 22 | __int64 camp = 0; | ^~~~~~~ | __int64_t Main.cpp:24:29: error: expected ‘;’ before ‘next’ 24 | for (__int64 next : tree) { | ^~~~~ | ; Main.cpp:29:17: error: expected primary-expression before ‘if’ 29 | if (camp == target) { | ^~ Main.cpp:28:18: error: expected ‘;’ before ‘if’ 28 | } | ^ | ; 29 | if (camp == target) { | ~~ Main.cpp:29:17: error: expected primary-expression before ‘if’ 29 | if (camp == target) { | ^~ Main.cpp:28:18: error: expected ‘)’ before ‘if’ 28 | } | ^ | ) 29 | if (camp == target) { | ~~ Main.cpp:24:21: note: to match this ‘(’ 24 | for (__int64 next : tree) { | ^ Main.cpp:29:21: error: ‘camp’ was not declared in this scope 29 | if (camp == target) { | ^~~~
제출 결과
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
제출 코드
찾은 반례
반례를 발견하지 못했습니다.