Problem sunshine
User asbx
Submission Time 2023-11-20 12:14:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sunshine.cpp: In function ‘int main()’:
sunshine.cpp:10:21: error: template argument 2 is invalid
10 | pair<int, <int, int>> W[n+q],V[n+q];
| ^~
sunshine.cpp:12:13: error: request for member ‘first’ in ‘W[i]’, which is of non-class type ‘int’
12 | cin>>W[i].first;
| ^~~~~
sunshine.cpp:13:8: error: request for member ‘second’ in ‘W[i]’, which is of non-class type ‘int’
13 | W[i].second.first=1;
| ^~~~~~
sunshine.cpp:14:8: error: request for member ‘second’ in ‘V[i]’, which is of non-class type ‘int’
14 | V[i].second.first=1;
| ^~~~~~
sunshine.cpp:15:13: error: request for member ‘first’ in ‘W[i]’, which is of non-class type ‘int’
15 | cin>>W[i].first;
| ^~~~~
sunshine.cpp:16:13: error: request for member ‘first’ in ‘V[i]’, which is of non-class type ‘int’
16 | cin>>V[i].first;
|