21863번 - __builtout_popcount
이 문제에서 제출 가능한 언어는 C++14, C++17, C++20이지만, register 키워드는 C++17 표준에 아예 삭제되었다고 적혀 있습니다. 원칙적으로는 C++17부터 변수를 register로 선언하는 것이 불가능합니다. 이것 때문에 제 환경에서 main.cpp 파일을 컴파일하는 것이 불가능합니다.
In C++, unlike C, variables cannot be declared register. (since C++17)
https://en.cppreference.com/w/...
댓글을 작성하려면 로그인해야 합니다.
invrtd_h 3년 전 1
이 문제에서 제출 가능한 언어는 C++14, C++17, C++20이지만, register 키워드는 C++17 표준에 아예 삭제되었다고 적혀 있습니다. 원칙적으로는 C++17부터 변수를 register로 선언하는 것이 불가능합니다. 이것 때문에 제 환경에서 main.cpp 파일을 컴파일하는 것이 불가능합니다.
In C++, unlike C, variables cannot be declared register. (since C++17)
https://en.cppreference.com/w/...