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