Problem | mountains |
---|---|
User | Schzeey |
Submission Time | 2023-02-17 22:37:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mountains.cpp: In function ‘int main()’:
mountains.cpp:11:5: error: expected initializer before ‘for’
11 | for (ll i = 0; i < n; ++i){
| ^~~
mountains.cpp:11:20: error: ‘i’ was not declared in this scope
11 | for (ll i = 0; i < n; ++i){
| ^
mountains.cpp:15:10: error: ‘toSort’ was not declared in this scope
15 | sort(toSort, toSort+n)
| ^~~~~~
mountains.cpp:27:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
27 | ans += lfCombi*riCombi;
| ^~~
| abs
mountains.cpp:29:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
29 | cout << ans;
| ^~~
| abs