Problem helloworld
User Elnathan
Submission Time 2023-12-17 14:43:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:2:19: error: local external declaration ‘int puts’ [-fpermissive]
2 | main(){extern int puts;((int(*)(const char*))&puts)("Hello World");}
| ^~~~
In file included from helloworld.cpp:1:
/usr/include/stdio.h:632:12: note: does not match previous declaration ‘int puts(const char*)’
632 | extern int puts (const char *__s);
| ^~~~