제출 #1120765

#제출 시각아이디문제언어결과실행 시간메모리
1120765vjudge1Tracks in the Snow (BOI13_tracks)C++17
컴파일 에러
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

컴파일 시 표준 에러 (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];
      |                                     ^