Submission #115801

#TimeUsernameProblemLanguageResultExecution timeMemory
115801maho04printf 함수 1 (BSC_0_1)C++14
Compilation error
0 ms0 KiB
main() { printf("Hello World"); }

Compilation message (stderr)

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