Problem | addition |
---|---|
User | usernamehere |
Submission Time | 2025-10-07 15:36:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
addition.cpp:1:1: error: expected unqualified-id before ‘if’
1 | if(extern "C" int scanf(const char*, ...)){}
| ^~
addition.cpp:2:1: error: expected unqualified-id before ‘if’
2 | if(extern "C" int printf(const char*, ...)){}
| ^~
addition.cpp: In function ‘int main()’:
addition.cpp:7:5: error: ‘scanf’ was not declared in this scope
7 | scanf("%lld %lld", &x, &y);
| ^~~~~
addition.cpp:8:5: error: ‘printf’ was not declared in this scope
8 | printf("%lld\n", x+y);
| ^~~~~~
addition.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
+++ |+#include <cstdio>
1 | if(extern "C" int scanf(const char*, ...)){}