Problem bestplace
User Mimikyu
Submission Time 2024-02-12 16:19:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bestplace.cpp: In function ‘int32_t main()’:
bestplace.cpp:4:11: error: request for member ‘first’ in ‘arr[i]’, which is of non-class type ‘long long int’
4 | #define f first
| ^~~~~
bestplace.cpp:62:22: note: in expansion of macro ‘f’
62 | if(xx>=sumf(arr[i].f,arr,x)){
| ^
bestplace.cpp:4:11: error: request for member ‘first’ in ‘arr[i]’, which is of non-class type ‘long long int’
4 | #define f first
| ^~~~~
bestplace.cpp:63:19: note: in expansion of macro ‘f’
63 | xx=sumf(arr[i].f,arr,x);
| ^
bestplace.cpp:5:11: error: request for member ‘second’ in ‘arr[i]’, which is of non-class type ‘long long int’
5 | #define s second
| ^~~~~~
bestplace.cpp:68:22: note: in expansion of macro ‘s’
68 | if(yy>=sums(arr[i].s,arr,x)){
| ^
bestplace.cpp:5:11: error: request for member ‘sec