Problem addition
User abigail
Submission Time 2024-06-20 09:37:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp: In function ‘int main()’:
addition.cpp:2:3: error: ‘pair’ was not declared in this scope
2 | pair<int, int> a;
| ^~~~
addition.cpp:2:8: error: expected primary-expression before ‘int’
2 | pair<int, int> a;
| ^~~
addition.cpp:3:3: error: ‘cin’ was not declared in this scope
3 | cin >> a.first >> a.second;
| ^~~
addition.cpp:3:10: error: ‘a’ was not declared in this scope
3 | cin >> a.first >> a.second;
| ^
addition.cpp:4:3: error: ‘cout’ was not declared in this scope
4 | cout << a.first + a.second;
| ^~~~