Problem | area |
---|---|
User | lololol |
Submission Time | 2024-02-12 03:36:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:10:9: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
10 | printf(total);
| ^~~~~
| |
| int
In file included from /usr/include/stdio.h:867,
from area.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, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~