Problem catlunch
User Kenniene
Submission Time 2024-04-19 15:38:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int32_t main()’:
catlunch.cpp:17:18: error: ‘class std::vector<long long int>’ has no member named ‘push’
17 | catlunch.push(a[i]);
| ^~~~
catlunch.cpp:22:25: error: ‘class std::vector<long long int>’ has no member named ‘top’
22 | res += catlunch.top();
| ^~~
catlunch.cpp:24:18: error: ‘class std::vector<long long int>’ has no member named ‘pop’
24 | catlunch.pop();
| ^~~
catlunch.cpp:25:18: error: ‘class std::vector<long long int>’ has no member named ‘push’
25 | catlunch.push(a[i]);
| ^~~~
catlunch.cpp:29:25: error: ‘class std::vector<long long int>’ has no member named ‘top’
29 | res += catlunch.top();
| ^~~
catlunch.cpp:31:18: error: ‘class std::vector<long long int>’ has no member named ‘po