실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void star(char*, int, int)’: Main.cpp:12:17: error: invalid types ‘char[int]’ for array subscript 12 | A[i][j] = ' '; | ^ Main.cpp: In function ‘int main()’: Main.cpp:27:30: warning: left operand of comma operator has no effect [-Wunused-value] 27 | char* res = new char[N,N]; | ^ Main.cpp:31:22: warning: top-level comma expression in array subscript is deprecated [-Wcomma-subscript] 31 | res[i, j] = '*'; | ^ Main.cpp:31:21: warning: left operand of comma operator has no effect [-Wunused-value] 31 | res[i, j] = '*'; | ^ Main.cpp:39:30: warning: top-level comma expression in array subscript is deprecated [-Wcomma-subscript] 39 | cout << res[i,j]; | ^ Main.cpp:39:29: warning: left operand of comma operator has no effect [-Wunused-value] 39 | cout << res[i,j]; | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.