Problem addition
User DctrsSpaceHelmet
Submission Time 2023-11-23 12:12:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

addition.cpp:3:15: error: expected identifier before numeric constant
3 | long long int[2] a;
| ^
addition.cpp:3:15: error: expected ‘]’ before numeric constant
3 | long long int[2] a;
| ^
| ]
addition.cpp:3:14: error: structured binding declaration cannot have type ‘long long int’
3 | long long int[2] a;
| ^
addition.cpp:3:14: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
addition.cpp:3:14: error: empty structured binding declaration
addition.cpp:3:18: error: expected initializer before ‘a’
3 | long long int[2] a;
| ^
addition.cpp: In function ‘int main()’:
addition.cpp:11:10: error: ‘a’ was not declared in this scope
11 | cin >> a[i];
| ^
addition.cpp:13:6: error: ‘a’ was not declared in this scope
13 | b = a[0] + a[1];
| ^