Problem | addition |
---|---|
User | waffles1823 |
Submission Time | 2023-11-08 09:49:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:9:14: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
9 | printf(x + y);
| ~~^~~
| |
| int
In file included from /usr/include/stdio.h:867,
from addition.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:105:32: note: initializing argument 1 of ‘int printf(const char*, ...)’
105 | printf (const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~