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

Compile Error

sunshine.cpp: In function ‘int main()’:
sunshine.cpp:10:35: error: template argument 2 is invalid
10 | pair<int, <int, int> W[n+q],V[n+q];
| ^
sunshine.cpp:12:8: error: ‘W’ was not declared in this scope
12 | cin>>W[i].first;
| ^
sunshine.cpp:14:3: error: ‘V’ was not declared in this scope
14 | V[i].second.first=1;
| ^
sunshine.cpp:24:7: error: ‘V’ was not declared in this scope
24 | sort(V, V+n+q);
| ^