Problem bronzemedal
User DuckyKayden
Submission Time 2025-08-06 16:28:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bronzemedal.cpp: In function ‘int32_t main()’:
bronzemedal.cpp:13:14: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘std::vector<long long int> [n]’
13 | sort(min(a.begin(), max(a.end());
| ^~~~~
bronzemedal.cpp:13:29: error: request for member ‘end’ in ‘a’, which is of non-class type ‘std::vector<long long int> [n]’
13 | sort(min(a.begin(), max(a.end());
| ^~~
bronzemedal.cpp:22:16: error: cannot convert ‘std::vector<long long int>’ to ‘long long int’ in assignment
22 | cutoff = a[i];
| ~~~^
| |
| std::vector<long long int>
bronzemedal.cpp:28:12: error: no match for ‘operator>=’ (operand types are ‘std::vector<long long int>’ and ‘long long int’)
28 | if (a[i] >= count) {
| ~~~~ ^~ ~~~~~
| | |
| | lon