Submission #1363752

#TimeUsernameProblemLanguageResultExecution timeMemory
1363752yyc000123Chika Wants to Cheat (EGOI22_cheat)C++20
Compilation error
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 ;
}

Compilation message (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 | }
      | ~