답안 #202584

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
202584 2020-02-17T07:53:00 Z detaomega Sob (COCI19_sob) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second
#define rep(i,a,b) for(int i=a;i<=b;i++)
#define IOS ios::sync_with_stdio(0);cin.tie(0);
#define de(x,y) cout<<#x<<" :"<<x<<y;
#define int long long
#define SZ(xx) ((int)xx.size())
#define lowbit(xx) (xx&(-xx))
#define pb push_back
typedef pair<int,int> pii;

const int maxn = 4e5+5;



main() {
	IOSjavascript:tab_clicked(1)
	int n, m;
	cin >> n >> m;
	for(int i=0; i<n; i++) {
		for(int j=m; j<m+n; j++) {
			if((i and j) == i) {
				cout << i << " " << j << "\n"; 
				break;
			}
		}
	}




}

Compilation message

sob.cpp:18:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main() {
      ^
sob.cpp: In function 'int main()':
sob.cpp:19:16: error: 'tab_clicked' was not declared in this scope
  IOSjavascript:tab_clicked(1)
                ^~~~~~~~~~~
sob.cpp:21:9: error: 'n' was not declared in this scope
  cin >> n >> m;
         ^
sob.cpp:21:9: note: suggested alternative: 'yn'
  cin >> n >> m;
         ^
         yn
sob.cpp:21:14: error: 'm' was not declared in this scope
  cin >> n >> m;
              ^
sob.cpp:21:14: note: suggested alternative: 'tm'
  cin >> n >> m;
              ^
              tm
sob.cpp:19:2: warning: label 'IOSjavascript' defined but not used [-Wunused-label]
  IOSjavascript:tab_clicked(1)
  ^~~~~~~~~~~~~