Problem gravity
User PlayVoltz
Submission Time 2024-01-13 16:19:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gravity.cpp: In function ‘void gravity()’:
gravity.cpp:17:24: error: conflicting declaration ‘std::vector<std::vector<bool> > dj’
17 | vector<vector<bool> > dj(n, vector<bool>(m, 0));
| ^~
gravity.cpp:16:23: note: previous declaration as ‘std::vector<std::vector<long long int> > dj’
16 | vector<vector<int> > dj(n, vector<int>(m, LLONG_MAX/2));
| ^~
gravity.cpp:32:7: error: ‘visited’ was not declared in this scope
32 | if (visited[y][x])continue;
| ^~~~~~~
gravity.cpp:33:3: error: ‘visited’ was not declared in this scope
33 | visited[y][x]=1;
| ^~~~~~~
gravity.cpp:34:10: error: invalid types ‘long long int[long long int]’ for array subscript
34 | dy[y][x]=d;
| ^
gravity.cpp:35:21: error: invalid types ‘long long int[long long int]’ for array subscript
35 | pq.