Problem | globalwarming |
---|---|
User | Samyeobeo |
Submission Time | 2025-09-05 16:25:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
globalwarming.cpp: In function ‘long long int gw(long long int, std::vector<long long int>&)’:
globalwarming.cpp:13:50: error: ‘auto’ parameter not permitted in this context
13 | sort(a.begin(),a.end(), [](pair<int,int> &x, pair,int,int> &y){
| ^~~~
globalwarming.cpp:13:62: error: expected ‘,’ or ‘...’ before ‘>’ token
13 | sort(a.begin(),a.end(), [](pair<int,int> &x, pair,int,int> &y){
| ^
globalwarming.cpp: In lambda function:
globalwarming.cpp:14:27: error: ‘y’ was not declared in this scope
14 | return x.first > y.first;
| ^
globalwarming.cpp: In function ‘long long int gw(long long int, std::vector<long long int>&)’:
globalwarming.cpp:46:1: error: expected primary-expression before ‘]’ token
46 | ]
| ^
globalwarming