🚫ERROR
[BOJ] error: ‘strlen’ was not declared in this scope
Cocoon_
2020. 12. 2. 17:10
반응형
error: ‘strlen’ was not declared in this scope
더보기
error: ‘strlen’ was not declared in this scope
백준으로 문자열 관련 문제를 풀다보면 한번씩 접하는 컴파일 오류이다.
해결방법은 #include<string>을 간단하게 아래와 같이 수정하면 된다.
#include<cstring>
혹은
#include<string.h>
반응형