rotate.cpp: In function 'void energy(int, std::vector<int>)':
rotate.cpp:6:21: error: 'll' was not declared in this scope
6 | vector<pair<ll,ll>>a;
| ^~
rotate.cpp:6:24: error: template argument 1 is invalid
6 | vector<pair<ll,ll>>a;
| ^~
rotate.cpp:6:26: error: template argument 1 is invalid
6 | vector<pair<ll,ll>>a;
| ^~
rotate.cpp:6:26: error: template argument 2 is invalid
rotate.cpp:7:13: error: declaration of 'int n' shadows a parameter
7 | int n=v.size();
| ^
rotate.cpp:5:17: note: 'int n' previously declared here
5 | void energy(int n, std::vector<int> v) {
| ~~~~^
rotate.cpp:9:19: error: request for member 'push_back' in 'a', which is of non-class type 'int'
9 | a.push_back({v[i],i});
| ^~~~~~~~~
rotate.cpp:11:16: error: request for member 'begin' in 'a', which is of non-class type 'int'
11 | sort(a.begin(),a.end());
| ^~~~~
rotate.cpp:11:26: error: request for member 'end' in 'a', which is of non-class type 'int'
11 | sort(a.begin(),a.end());
| ^~~
rotate.cpp:13:26: error: invalid types 'int[int]' for array subscript
13 | rotate({a[i].second},a[0].first+75000-a[i].first);
| ^
rotate.cpp:13:39: error: invalid types 'int[int]' for array subscript
13 | rotate({a[i].second},a[0].first+75000-a[i].first);
| ^
rotate.cpp:13:56: error: invalid types 'int[int]' for array subscript
13 | rotate({a[i].second},a[0].first+75000-a[i].first);
| ^
rotate.cpp:15:46: error: invalid types 'int[int]' for array subscript
15 | for(int i=1;i<n-1-n/2+1;i++)rotate({a[i].second},a[0].first-a[i].first+50000);
| ^
rotate.cpp:15:59: error: invalid types 'int[int]' for array subscript
15 | for(int i=1;i<n-1-n/2+1;i++)rotate({a[i].second},a[0].first-a[i].first+50000);
| ^
rotate.cpp:15:70: error: invalid types 'int[int]' for array subscript
15 | for(int i=1;i<n-1-n/2+1;i++)rotate({a[i].second},a[0].first-a[i].first+50000);
| ^