Problem trivialmaths
User JIZHE
Submission Time 2023-04-01 17:59:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trivialmaths.cpp: In function ‘int main(int, const char**)’:
trivialmaths.cpp:17:12: error: cannot convert ‘double’ to ‘const char*’
17 | printf(value, result);
| ^~~~~
| |
| double
In file included from /usr/include/stdio.h:867,
from trivialmaths.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, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~