Problem applefarm
User JustKitkat
Submission Time 2024-10-10 11:30:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

applefarm.cpp: In function ‘void dijkstra(long long int, std::vector<long long int>&, std::vector<long long int>&, long long int)’:
applefarm.cpp:84:24: error: invalid types ‘long long int[int]’ for array subscript
84 | int v = x[0];
| ^
applefarm.cpp:85:29: error: invalid types ‘long long int[int]’ for array subscript
85 | int weight = x[1];
| ^
applefarm.cpp:87:32: error: invalid types ‘long long int[int]’ for array subscript
87 | if(c==2)weight+=x[2];
| ^