실행 실패 (제출 코드 컴파일 에러)
Main.cpp:9:17: error: ‘bool time [200001]’ redeclared as different kind of entity 9 | bool time[200001]; | ^ In file included from /usr/include/pthread.h:23, from /usr/include/aarch64-linux-gnu/c++/11/bits/gthr-default.h:35, from /usr/include/aarch64-linux-gnu/c++/11/bits/gthr.h:148, from /usr/include/c++/11/ext/atomicity.h:35, from /usr/include/c++/11/bits/ios_base.h:39, 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/time.h:76:15: note: previous declaration ‘time_t time(time_t*)’ 76 | extern time_t time (time_t *__timer) __THROW; | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:28:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] 28 | if(time[deadline-i] == false){ | ^ Main.cpp:28:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 28 | if(time[deadline-i] == false){ | ~~~~~~~~~~~~~~~~~^~~~~~~~ Main.cpp:29:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] 29 | time[deadline-i] = true; | ^ Main.cpp:29:34: error: assignment of read-only location ‘*(time + ((sizetype)(deadline - i)))’ 29 | time[deadline-i] = true; | ~~~~~~~~~~~~~~~~~^~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.