질문&답변
for(int a : abc) 오류
str은 char 배열이므로 int와 타입이 맞지 않아서 생기는 오류아닌가요..? for (char c : str) 로 수정 해보세요