답안 #115799

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
115799 2019-06-09T07:38:10 Z maho04 printf 함수 1 (BSC_0_1) C++14
컴파일 오류
0 ms 0 KB
main()
{
  scanf("%s",HelloWorld);
}

Compilation message

printf1.cpp:1:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main()
      ^
printf1.cpp: In function 'int main()':
printf1.cpp:3:14: error: 'HelloWorld' was not declared in this scope
   scanf("%s",HelloWorld);
              ^~~~~~~~~~
printf1.cpp:3:3: error: 'scanf' was not declared in this scope
   scanf("%s",HelloWorld);
   ^~~~~