Problem | addition |
---|---|
User | gordonlu |
Submission Time | 2023-09-01 17:34:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp: In function ‘int main()’:
addition.cpp:5:8: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
5 | scanf(a); scanf(b);
| ^
| |
| int
In file included from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from addition.cpp:1:
/usr/include/stdio.h:397:42: note: initializing argument 1 of ‘int scanf(const char*, ...)’
397 | extern int scanf (const char *__restrict __format, ...) __wur;
|