실행 실패 (제출 코드 컴파일 에러)
Main.cpp:12:5: error: ‘int index’ redeclared as different kind of entity 12 | int index = 0; | ^~~~~ In file included from /usr/include/string.h:462, from /usr/include/c++/11/cstring:42, from Main.cpp:2: /usr/include/strings.h:61:1: note: previous declaration ‘const char* index(const char*, int)’ 61 | index (const char *__s, int __c) __THROW | ^~~~~ Main.cpp: In function ‘NODE* get_node()’: Main.cpp:15:13: error: invalid types ‘NODE [220000][<unresolved overloaded function type>]’ for array subscript 15 | pool[index].next = NULL; | ^ Main.cpp:16:13: error: invalid types ‘NODE [220000][<unresolved overloaded function type>]’ for array subscript 16 | pool[index].n = 0; | ^ Main.cpp:17:27: error: no post-increment operator for type 17 | return &pool[index++]; | ^~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.