실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void backtrack(std::vector<int>&, std::vector<int>&, std::vector<int>&, std::vector<bool>&, int, int)’: Main.cpp:8:25: warning: comparison of integer expressions of different signedness: ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 8 | if (sequence.size() == m && sequence != prevSequence) { | ~~~~~~~~~~~~~~~~^~~~ Main.cpp:22:13: error: ‘nums’ was not declared in this scope 22 | if (nums[i] == nums[i - 1] && !used[i - 1]) { | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.