Submission #1120765

#TimeUsernameProblemLanguageResultExecution timeMemory
1120765vjudge1Tracks in the Snow (BOI13_tracks)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define GOOD_LUCK ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); #define int long long #define endl "\n" #define MAX 10005 #define INF 1000000000 #define MOD 16714589 #define ff first #define ss second #define all(v) v.begin(), v.end() using namespace std; const int MAXN = 1e+5; int temp; signed main() { GOOD_LUCK int t; t = 1; // cin >> t; while (t--) { int n, k; cin >> n >> k; char a[n][m]; for (int i=0; i < n; i++) { for (int j=0; j < m ;j++) cin >> a[i][j]; } cout << 2; } return 0; } // Problem B // by Ekber_Ekber

Compilation message (stderr)

tracks.cpp: In function 'int main()':
tracks.cpp:27:13: error: 'm' was not declared in this scope
   27 |   char a[n][m];
      |             ^
tracks.cpp:29:37: error: 'a' was not declared in this scope
   29 |    for (int j=0; j < m ;j++) cin >> a[i][j];
      |                                     ^