Problem | sumint |
---|---|
User | HelloMhing |
Submission Time | 2023-07-11 23:06:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:10:9: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
10 | printf(sum)
| ^~~
| |
| int
In file included from /usr/include/stdio.h:867,
from sumint.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, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
sumint.cpp:10:13: error: expected ‘;’ before ‘}’ token
10 | printf(sum)
| ^
| ;
11 | }
| ~