실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:44:9: error: ‘i’ was not declared in this scope 44 | for(i=arr_size;i>0;i--;){ | ^ Main.cpp:44:27: error: expected ‘)’ before ‘;’ token 44 | for(i=arr_size;i>0;i--;){ | ~ ^ | ) Main.cpp:44:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 44 | for(i=arr_size;i>0;i--;){ | ^~~ Main.cpp:44:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 44 | for(i=arr_size;i>0;i--;){ | ^ Main.cpp:44:28: error: expected primary-expression before ‘)’ token Main.cpp:54:30: error: a function-definition is not allowed here before ‘{’ token 54 | void scan(int& input_arr){ | ^ Main.cpp:84:74: error: expected ‘;’ before ‘scan_arr’ 84 | merge(arr,temp_arr,0,scan_arr[0],1+1+scan_arr[0],scan_arr[i]) | ^ | ; 85 | 86 | scan_arr[0]=merge_size-2; | ~~~~~~~~ Main.cpp:93:9: error: ‘i’ was not declared in this scope 93 | for(i=0;i<arr_size;i++;){ | ^ Main.cpp:93:27: error: expected ‘)’ before ‘;’ token 93 | for(i=0;i<arr_size;i++;){ | ~ ^ | ) Main.cpp:93:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 93 | for(i=0;i<arr_size;i++;){ | ^~~ Main.cpp:93:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 93 | for(i=0;i<arr_size;i++;){ | ^ Main.cpp:93:28: error: expected primary-expression before ‘)’ token Main.cpp:98:2: error: expected ‘}’ at end of input 98 | } | ^ Main.cpp:35:11: note: to match this ‘{’ 35 | int main(){ | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.