실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:27:27: error: no match for ‘operator=’ (operand types are ‘state’ and ‘int’) 27 | ans = s.depth+1; | ^ Main.cpp:6:8: note: candidate: ‘constexpr state& state::operator=(const state&)’ 6 | struct state{ | ^~~~~ Main.cpp:6:8: note: no known conversion for argument 1 from ‘int’ to ‘const state&’ Main.cpp:6:8: note: candidate: ‘constexpr state& state::operator=(state&&)’ Main.cpp:6:8: note: no known conversion for argument 1 from ‘int’ to ‘state&&’ Main.cpp:36:31: error: no match for ‘operator=’ (operand types are ‘state’ and ‘int’) 36 | ans = s.depth+1; | ^ Main.cpp:6:8: note: candidate: ‘constexpr state& state::operator=(const state&)’ 6 | struct state{ | ^~~~~ Main.cpp:6:8: note: no known conversion for argument 1 from ‘int’ to ‘const state&’ Main.cpp:6:8: note: candidate: ‘constexpr state& state::operator=(state&&)’ Main.cpp:6:8: note: no known conversion for argument 1 from ‘int’ to ‘state&&’ Main.cpp:43:31: error: no match for ‘operator=’ (operand types are ‘state’ and ‘int’) 43 | ans = s.depth+1; | ^ Main.cpp:6:8: note: candidate: ‘constexpr state& state::operator=(const state&)’ 6 | struct state{ | ^~~~~ Main.cpp:6:8: note: no known conversion for argument 1 from ‘int’ to ‘const state&’ Main.cpp:6:8: note: candidate: ‘constexpr state& state::operator=(state&&)’ Main.cpp:6:8: note: no known conversion for argument 1 from ‘int’ to ‘state&&’
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.