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가 표준이 아니라네요
kch9524 5년 전 1
이걸 int형말고 long long int에 %lld로 바꿔서 해봤는데도 컴파일에러가 뜨더라구요 실제 비주얼스튜디오에서는 잘돌아가구요
왜 이런건가요?