Problem ntuc
User hitarthdangra
Submission Time 2025-06-19 13:33:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ntuc.cpp: In function ‘int main()’:
ntuc.cpp:13:24: error: expression cannot be used as a function
13 | cin >> arr[i].second();
| ^
ntuc.cpp:16:18: error: expected ‘;’ before ‘i’
16 | for ( int i = 0l i < n; i++) {
| ^~
| ;
ntuc.cpp:17:23: error: expression cannot be used as a function
17 | cin >> arr[i].first();
| ^
ntuc.cpp:24:19: error: ‘idx’ was not declared in this scope; did you mean ‘index’?
24 | int price = arr[idx].first();
| ^~~
| index