kch9524   6년 전

이걸 int형말고 long long int에 %lld로 바꿔서 해봤는데도 컴파일에러가 뜨더라구요 실제 비주얼스튜디오에서는 잘돌아가구요


왜 이런건가요?

kimsy96   6년 전

scanf_s 

is Microsoft-specific. Header is stdio.h but not in GCC.

Used to Read formatted data from the standard input stream. These versions of scanf,scanf_s, _scanf_l, wscanf, _wscanf_l have security enhancements

Where as Ideone uses GCC because of this only you got undefined reference to scanf_s

백준은 gcc컴파일러를 쓰고 gcc에선 scanf_s가 표준이 아니라네요

djm03178   6년 전

컴파일 에러는 "컴파일 에러"라고 쓰인 곳을 클릭하면 에러 메시지를 볼 수 있습니다.

kimsy96   6년 전

vs 에서 코딩할때 

#pragma warning(disable:4996) 이거 하나 써주고 코딩하면 

vs에서 뜨는 메시지들(scanf_s를 쓰라고 한다거나 뭐 그런메시지들)

안뜹니다

댓글을 작성하려면 로그인해야 합니다.