답안 #104091

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
104091 2019-04-04T02:28:15 Z wiritos1 Konj (COCI19_konj) C++
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;
int n;
char mat[301][301];
int main()
{
	cin>>n;
	int xi=300,xf=0,yi=300,yf=0;
	for(int a=0;a<301;a++)
	{
		for(int b=0;b<301;b++)
		{
			mat[a][b]='.';
		}
	}
	set<pair<x,y> >finales;
	
	return 0;
}

Compilation message

konj.cpp: In function 'int main()':
konj.cpp:16:11: error: 'x' was not declared in this scope
  set<pair<x,y> >finales;
           ^
konj.cpp:16:11: note: suggested alternative: 'xf'
  set<pair<x,y> >finales;
           ^
           xf
konj.cpp:16:13: error: 'y' was not declared in this scope
  set<pair<x,y> >finales;
             ^
konj.cpp:16:13: note: suggested alternative: 'yf'
  set<pair<x,y> >finales;
             ^
             yf
konj.cpp:16:14: error: template argument 1 is invalid
  set<pair<x,y> >finales;
              ^
konj.cpp:16:14: error: template argument 2 is invalid
konj.cpp:16:16: error: template argument 1 is invalid
  set<pair<x,y> >finales;
                ^
konj.cpp:16:16: error: template argument 2 is invalid
konj.cpp:16:16: error: template argument 3 is invalid
konj.cpp:8:6: warning: unused variable 'xi' [-Wunused-variable]
  int xi=300,xf=0,yi=300,yf=0;
      ^~
konj.cpp:8:13: warning: unused variable 'xf' [-Wunused-variable]
  int xi=300,xf=0,yi=300,yf=0;
             ^~
konj.cpp:8:18: warning: unused variable 'yi' [-Wunused-variable]
  int xi=300,xf=0,yi=300,yf=0;
                  ^~
konj.cpp:8:25: warning: unused variable 'yf' [-Wunused-variable]
  int xi=300,xf=0,yi=300,yf=0;
                         ^~
konj.cpp:16:17: warning: unused variable 'finales' [-Wunused-variable]
  set<pair<x,y> >finales;
                 ^~~~~~~