제출 #687070

#제출 시각아이디문제언어결과실행 시간메모리
687070smartmonkyCostinland (info1cup19_costinland)C++14
11.68 / 100
1076 ms49508 KiB
#include <bits/stdc++.h>
 
#define ff first
#define ss second
#define pb push_back
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define int long long
 
using namespace std;
const int N = 1e6 + 1;
int a[3][N];
main(){
	ios_base::sync_with_stdio(0);
    cin.tie(0);
	int k;
	cin >> k;
	cout << 2 <<" " << k<< endl;
	for(int i = 1; i < k; i++){
		cout << "X";
	}
	cout << "d";
	cout << endl;
	for(int i = 1; i <= k - 1; i++){
		cout << "r";
	}
	cout << '.';
}

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

costinland.cpp:13:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   13 | main(){
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...