답안 #115801

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
115801 2019-06-09T07:40:54 Z maho04 printf 함수 1 (BSC_0_1) C++14
컴파일 오류
0 ms 0 KB
main()
{
  printf("Hello World");
}

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:3: error: 'printf' was not declared in this scope
   printf("Hello World");
   ^~~~~~
printf1.cpp:3:3: note: suggested alternative: 'int'
   printf("Hello World");
   ^~~~~~
   int