Problem addition3
User usernamehere
Submission Time 2024-11-15 11:31:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition3.cpp: In function ‘int main()’:
addition3.cpp:2:20: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
2 | int main(){if(puts(9)){}}
| ^
| |
| int
In file included from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from addition3.cpp:1:
/usr/include/stdio.h:632:30: note: initializing argument 1 of ‘int puts(const char*)’
632 | extern int puts (const char *__s);