실행 실패 (제출 코드 컴파일 에러)
Main.cpp:4:14: error: ‘int select [10]’ redeclared as different kind of entity 4 | int select[10]; | ^ In file included from /usr/include/aarch64-linux-gnu/sys/types.h:179, from /usr/include/stdlib.h:395, from /usr/include/c++/11/cstdlib:75, from /usr/include/c++/11/bits/stl_algo.h:59, from /usr/include/c++/11/string:52, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/aarch64-linux-gnu/sys/select.h:102:12: note: previous declaration ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’ 102 | extern int select (int __nfds, fd_set *__restrict __readfds, | ^~~~~~ Main.cpp: In function ‘void back_track(int, int)’: Main.cpp:16:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] 16 | select[num] = start; | ^ Main.cpp:16:21: error: assignment of read-only location ‘*(select + ((sizetype)num))’ 16 | select[num] = start; | ~~~~~~~~~~~~^~~~~~~ Main.cpp:19:41: warning: pointer to a function used in arithmetic [-Wpointer-arith] 19 | cout << select[i] << " "; | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.