Problem applefarm
User JustKitkat
Submission Time 2024-10-10 11:28:35
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:86:8: error: invalid types ‘long long int[int]’ for array subscript
86 | ];
| ^
applefarm.cpp:87:32: error: invalid types ‘long long int[int]’ for array subscript
87 | if(c==2)weight+=x[2];
| ^