coach.cpp:5:14: error: 'll' was not declared in this scope
5 | typedef pair<ll, ll> pii;
| ^~
coach.cpp:5:18: error: 'll' was not declared in this scope
5 | typedef pair<ll, ll> pii;
| ^~
coach.cpp:5:20: error: template argument 1 is invalid
5 | typedef pair<ll, ll> pii;
| ^
coach.cpp:5:20: error: template argument 2 is invalid
coach.cpp: In function 'bool operator<(Frac, Frac)':
coach.cpp:46:11: error: '__ll128' was not declared in this scope
46 | return ((__ll128)a.num*b.denom) < ((__ll128)b.num*a.denom);
| ^~~~~~~
coach.cpp:46:19: error: expected ')' before 'a'
46 | return ((__ll128)a.num*b.denom) < ((__ll128)b.num*a.denom);
| ~ ^
| )
coach.cpp: In function 'int main()':
coach.cpp:75:19: error: expression list treated as compound expression in functional cast [-fpermissive]
75 | ppl[0] = pii(0, 0);
| ^
coach.cpp:75:15: warning: left operand of comma operator has no effect [-Wunused-value]
75 | ppl[0] = pii(0, 0);
| ^
coach.cpp:78:20: error: expression list treated as compound expression in functional cast [-fpermissive]
78 | ppl[i] = pii(x, y);
| ^
coach.cpp:78:16: warning: left operand of comma operator has no effect [-Wunused-value]
78 | ppl[i] = pii(x, y);
| ^
coach.cpp:84:17: error: request for member 'second' in 'ppl[i]', which is of non-class type 'pii' {aka 'int'}
84 | cur += ppl[i].second;
| ^~~~~~
coach.cpp:93:28: error: request for member 'first' in 'ppl[cur]', which is of non-class type 'pii' {aka 'int'}
93 | if ((refill[i]-ppl[cur].first)/wll == comp) mn = cur;
| ^~~~~
coach.cpp:102:28: error: request for member 'first' in 'ppl[i]', which is of non-class type 'pii' {aka 'int'}
102 | dp[i] = wcost*((t-ppl[i].first)/wll+1)+dp[i-1];
| ^~~~~
coach.cpp:105:40: error: request for member 'first' in 'ppl[i]', which is of non-class type 'pii' {aka 'int'}
105 | ll sl = wcost*((refill[stat]-ppl[i].first)/wll);
| ^~~~~