Task: | Backpacking |
Sender: | Midnightlight |
Submission time: | 2024-09-02 16:28:13 +0300 |
Language: | C++ (C++11) |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:10:11: error: 'x' was not declared in this scope 10 | sum = x + y; | ^ input/code.cpp:10:15: error: 'y' was not declared in this scope 10 | sum = x + y; | ^
Code
#include <iostream> using namespace std; int main() { int A, B; int sum; cin >> A; cin >> B; sum = x + y; cout << sum; return(0); }