nile.cpp:90:1: error: extended character is not valid in an identifier
90 |
| ^
nile.cpp:21:18: error: 'a' was not declared in this scope
21 | bool comp2(link &a, link &b) {
| ^
nile.cpp:21:27: error: 'b' was not declared in this scope
21 | bool comp2(link &a, link &b) {
| ^
nile.cpp:21:28: error: expression list treated as compound expression in initializer [-fpermissive]
21 | bool comp2(link &a, link &b) {
| ^
nile.cpp: In function 'std::vector<long long int> calculate_costs(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
nile.cpp:55:20: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
55 | vector<link> evs;
| ^
nile.cpp:55:20: note: expected a type, got 'link'
nile.cpp:55:20: error: template argument 2 is invalid
nile.cpp:57:21: error: request for member 'push_back' in 'evs', which is of non-class type 'int'
57 | evs.push_back({p[i+1].w-p[i].w, i});
| ^~~~~~~~~
nile.cpp:59:18: error: request for member 'begin' in 'evs', which is of non-class type 'int'
59 | sort(evs.begin(), evs.end(), comp2);
| ^~~~~
nile.cpp:59:31: error: request for member 'end' in 'evs', which is of non-class type 'int'
59 | sort(evs.begin(), evs.end(), comp2);
| ^~~
nile.cpp:70:20: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
70 | vector<link> ps2;
| ^
nile.cpp:70:20: note: expected a type, got 'link'
nile.cpp:70:20: error: template argument 2 is invalid
nile.cpp:72:21: error: request for member 'push_back' in 'ps2', which is of non-class type 'int'
72 | ps2.push_back({p[i+1].w - p[i-1].w, i});
| ^~~~~~~~~
nile.cpp:74:18: error: request for member 'begin' in 'ps2', which is of non-class type 'int'
74 | sort(ps2.begin(), ps2.end(), comp2);
| ^~~~~
nile.cpp:74:31: error: request for member 'end' in 'ps2', which is of non-class type 'int'
74 | sort(ps2.begin(), ps2.end(), comp2);
| ^~~
nile.cpp:77:30: error: request for member 'size' in 'evs', which is of non-class type 'int'
77 | while (j<evs.size() && evs[j].df <= d) {
| ^~~~
nile.cpp:77:43: error: invalid types 'int[long long int]' for array subscript
77 | while (j<evs.size() && evs[j].df <= d) {
| ^
nile.cpp:78:33: error: invalid types 'int[long long int]' for array subscript
78 | join(evs[j].idx); j++;
| ^
nile.cpp:80:30: error: request for member 'size' in 'ps2', which is of non-class type 'int'
80 | while (t<ps2.size() && ps2[t].df <= d) {
| ^~~~
nile.cpp:80:43: error: invalid types 'int[long long int]' for array subscript
80 | while (t<ps2.size() && ps2[t].df <= d) {
| ^
nile.cpp:81:36: error: invalid types 'int[long long int]' for array subscript
81 | int i = ps2[t].idx;
| ^
nile.cpp: At global scope:
nile.cpp:90:1: error: '\U000000a0' does not name a type
90 |
| ^