Problem carpark
User AaravRastogi
Submission Time 2025-12-15 14:53:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

carpark.cpp: In function ‘int main()’:
carpark.cpp:19:43: error: expected primary-expression before ‘)’ token
19 | sort(D.begin(), D.end(), greater<int> )
| ^
carpark.cpp:23:58: error: ‘tl’ was not declared in this scope; did you mean ‘tm’?
23 | for (int i = 0; i < min((int)D.size(), s - 1); ++i) {tl -= D[i];}
| ^~
| tm
carpark.cpp:25:13: error: ‘tl’ was not declared in this scope; did you mean ‘tm’?
25 | cout << tl << "\n";
| ^~
| tm