Problem | addition |
---|---|
User | SY |
Submission Time | 2024-02-08 10:48:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:7:11: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
7 | printf(a + b);
| ~~^~~
| |
| int
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
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, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~