Problem helloworld
User Ok
Submission Time 2023-06-08 17:47:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp:1:10: error: cannot declare ‘::main’ to be a global variable
1 | int main(printf("hello world!");)
| ^~~~~~
helloworld.cpp:1:10: error: ‘printf’ was not declared in this scope
helloworld.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
+++ |+#include <cstdio>
1 | int main(printf("hello world!");)
helloworld.cpp:1:33: error: expected unqualified-id before ‘)’ token
1 | int main(printf("hello world!");)
| ^