Problem ntuc
User hitarthdangra
Submission Time 2025-06-19 13:35:20
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:17:23: error: expression cannot be used as a function
17 | cin >> arr[i].first();
| ^
ntuc.cpp:24:32: error: expression cannot be used as a function
24 | int price = arr[index].first();
| ^
ntuc.cpp:25:33: error: expression cannot be used as a function
25 | int stock = arr[index].second();
| ^