제출 #1363752

#제출 시각아이디문제언어결과실행 시간메모리
1363752yyc000123Chika Wants to Cheat (EGOI22_cheat)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std ;
#define F first
#define S second
const int Q = 1e4+5 ;
const int N = 67000005 ;

vector<pair<pair<int,int>,pair<int,int>>> BuildPattern(int n){
    if(n==1) return {{{0,0},{0,1}}} ;
    else return {{{0,0},{0,1}},{{0,1},{0,2}}}
}

int GetCardNumber(vector<pair<pair<int,int>,pair<int,int>>> v){
    if(v.size()==1) return 1 ;
    else return 2 ;
}

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

cheat.cpp: In function 'std::vector<std::pair<std::pair<int, int>, std::pair<int, int> > > BuildPattern(int)':
cheat.cpp:10:46: error: expected ';' before '}' token
   10 |     else return {{{0,0},{0,1}},{{0,1},{0,2}}}
      |                                              ^
      |                                              ;
   11 | }
      | ~