Problem burgers
User Kannan
Submission Time 2024-02-18 15:53:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

burgers.cpp: In function ‘int main()’:
burgers.cpp:5:41: error: invalid declarator before ‘b’
5 | pair<int, int> a[3], pair<int, int> b[3];
| ^
burgers.cpp:6:41: error: invalid declarator before ‘y’
6 | pair<int, int> x[3], pair<int, int> y[3];
| ^
burgers.cpp:11:65: error: assigning to an array from an initializer list
11 | a = {make_pair(a1, r1), make_pair(a2, r2), make_pair(a3, r3)};
| ^
burgers.cpp:14:5: error: ‘b’ was not declared in this scope; did you mean ‘b3’?
14 | b = {make_pair(b1, r1), make_pair(b2, r2), make_pair(b3, r3)};
| ^
| b3
burgers.cpp:19:13: error: ‘y’ was not declared in this scope
19 | y[i] = b[i];
| ^
burgers.cpp:25:13: error: ‘y’ was not declared