실행 실패 (제출 코드 컴파일 에러)
Main.c:1:3: error: expected ‘;’ before ‘typedef’ 1 | pp | ^ | ; Main.c: In function ‘main’: Main.c:57:9: error: declaration of ‘operations’ as array of functions 57 | int operations[4](int); | ^~~~~~~~~~ Main.c:58:21: error: expected expression before ‘[’ token 58 | operations[0] = [](int it) { return (it * 2) % 10000; }; | ^ Main.c:58:31: error: expected ‘;’ before ‘{’ token 58 | operations[0] = [](int it) { return (it * 2) % 10000; }; | ^~ | ; Main.c:59:21: error: expected expression before ‘[’ token 59 | operations[1] = [](int it) { return (it == 1) ? 9999 : it - 1; }; | ^ Main.c:59:31: error: expected ‘;’ before ‘{’ token 59 | operations[1] = [](int it) { return (it == 1) ? 9999 : it - 1; }; | ^~ | ; Main.c:60:21: error: expected expression before ‘[’ token 60 | operations[2] = [](int it) { | ^ Main.c:60:31: error: expected ‘;’ before ‘{’ token 60 | operations[2] = [](int it) { | ^~ | ; Main.c:64:21: error: expected expression before ‘[’ token 64 | operations[3] = [](int it) { | ^ Main.c:64:31: error: expected ‘;’ before ‘{’ token 64 | operations[3] = [](int it) { | ^~ | ; Main.c:57:9: warning: unused variable ‘operations’ [-Wunused-variable] 57 | int operations[4](int); | ^~~~~~~~~~ Main.c:71:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 71 | scanf("%d", &t); | ^~~~~~~~~~~~~~~ Main.c:74:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 74 | scanf("%d %d", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.