Submission #984611

#TimeUsernameProblemLanguageResultExecution timeMemory
984611vjudge1Tracks in the Snow (BOI13_tracks)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define ff first #define ss second #define pb push_back typedef long long ll; typedef pair<int,int> pii; int S = 4000; int graph[S][S]; int distance[S][S]; int main() { ios::sync_with_stdio(0); cin.tie(0); int h, w; cin >> h >> w; vector<vector<char>> meadow (h, vector<char> (w)); int ans = 0; for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ char x; cin >> x; meadow[i][j] = x; } } cout << 1; } /* * */

Compilation message (stderr)

tracks.cpp:14:12: error: array bound is not an integer constant before ']' token
   14 | int graph[S][S];
      |            ^
tracks.cpp:14:15: error: array bound is not an integer constant before ']' token
   14 | int graph[S][S];
      |               ^
tracks.cpp:15:15: error: array bound is not an integer constant before ']' token
   15 | int distance[S][S];
      |               ^
tracks.cpp:15:18: error: array bound is not an integer constant before ']' token
   15 | int distance[S][S];
      |                  ^
tracks.cpp: In function 'int main()':
tracks.cpp:23:7: warning: unused variable 'ans' [-Wunused-variable]
   23 |   int ans = 0;
      |       ^~~