Problem | mountains |
---|---|
User | ruiqi |
Submission Time | 2023-02-16 14:04:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mountains.cpp:1:1: error: stray ‘\’ in program
1 | \#include<bits/stdc++.h>
| ^
mountains.cpp:1:2: error: stray ‘#’ in program
1 | \#include<bits/stdc++.h>
| ^
mountains.cpp:1:3: error: ‘include’ does not name a type
1 | \#include<bits/stdc++.h>
| ^~~~~~~
mountains.cpp:14:1: error: ‘pair’ does not name a type
14 | pair<long long, int> disArr[300001];
| ^~~~
mountains.cpp: In function ‘long long int solve(int, long long int*)’:
mountains.cpp:16:30: error: ‘disArr’ was not declared in this scope
16 | for(int i = 1; i <= n; i++) disArr[i] = {H[i], i};
| ^~~~~~
mountains.cpp:17:7: error: ‘disArr’ was not declared in this scope
17 | sort(disArr + 1, disArr + n + 1);
| ^~~~~~
mountains.cpp:17:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
17 | sort(disArr + 1, disArr + n + 1);