shortcut.cpp: In function 'long long int find_shortcut(int32_t, std::vector<long long int>, std::vector<long long int>, int32_t)':
shortcut.cpp:21:5: error: 'tot' was not declared in this scope
21 | tot=0;
| ^~~
shortcut.cpp:36:41: error: 's' was not declared in this scope; did you mean 'ds'?
36 | if (S==i) ds = pref[s]+sum[s]-sum[1];
| ^
| ds
shortcut.cpp:37:41: error: 'e' was not declared in this scope; did you mean 'de'?
37 | if (E==j) de = suff[e]+sum[n]-sum[e];
| ^
| de
shortcut.cpp:38:49: error: 'e' was not declared in this scope; did you mean 'de'?
38 | curr=max(curr,ds+de+min(sum[e]-sum[s],sum[j]-sum[i]-dis+c));
| ^
| de
shortcut.cpp:38:56: error: 's' was not declared in this scope; did you mean 'ds'?
38 | curr=max(curr,ds+de+min(sum[e]-sum[s],sum[j]-sum[i]-dis+c));
| ^
| ds
shortcut.cpp:38:73: error: 'dis' was not declared in this scope; did you mean 'ds'?
38 | curr=max(curr,ds+de+min(sum[e]-sum[s],sum[j]-sum[i]-dis+c));
| ^~~
| ds
shortcut.cpp:53:17: error: assignment of read-only variable 'ans'
53 | ans = min(ans,curr);
| ~~~~^~~~~~~~~~~~~~~