제출 #845448

#제출 시각아이디문제언어결과실행 시간메모리
845448vjudge1Konstrukcija (COCI20_konstrukcija)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
#define all(c) (c).begin(), (c).end()

void solve(){	

	int k;
	cin >> k;

	cout << n << ' ' 0 << endl;
}

signed main(){

	cin.tie(0);
	ios_base::sync_with_stdio(0);

	#ifndef ONLINE_JUDGE
	//	freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);
	#endif

	ios_base::sync_with_stdio(0);
	cin.tie(0);

	int t = 1;
//	cin >> t;

	while(t--){
		solve();
	}

	return 0;
}

컴파일 시 표준 에러 (stderr) 메시지

konstrukcija.cpp: In function 'void solve()':
konstrukcija.cpp:12:10: error: 'n' was not declared in this scope
   12 |  cout << n << ' ' 0 << endl;
      |          ^