실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:7:7: error: expected identifier before numeric constant 7 | int[101] bucket = {0}; | ^~~ Main.cpp:7:7: error: expected ‘]’ before numeric constant 7 | int[101] bucket = {0}; | ^~~ | ] Main.cpp:7:6: error: structured binding declaration cannot have type ‘int’ 7 | int[101] bucket = {0}; | ^ Main.cpp:7:6: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ Main.cpp:7:6: error: empty structured binding declaration Main.cpp:7:12: error: expected initializer before ‘bucket’ 7 | int[101] bucket = {0}; | ^~~~~~ Main.cpp:10:20: warning: left operand of comma operator has no effect [-Wunused-value] 10 | for(int i = 0; i > N, i++) | ~~^~~ Main.cpp:10:28: error: expected ‘;’ before ‘)’ token 10 | for(int i = 0; i > N, i++) | ^ | ; Main.cpp:16:11: error: ‘bucket’ was not declared in this scope 16 | bucket[j - 1] = c; | ^~~~~~ Main.cpp:20:20: warning: left operand of comma operator has no effect [-Wunused-value] 20 | for(int k = 0; k > N, k++) | ~~^~~ Main.cpp:20:28: error: expected ‘;’ before ‘)’ token 20 | for(int k = 0; k > N, k++) | ^ | ; Main.cpp:22:15: error: ‘bucket’ was not declared in this scope 22 | cout << bucket[k] << " "; | ^~~~~~ Main.cpp:7:6: warning: unused structured binding declaration [-Wunused-variable] 7 | int[101] bucket = {0}; | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.