Submission #465803

#TimeUsernameProblemLanguageResultExecution timeMemory
465803habibaissaHandcrafted Gift (IOI20_gift)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#define int long long
using namespace std;
vector<vector<int> > l;
vector<int> memo;
int test=0;
vector<set<int> > res;
int construct(int n, int r, int[] a, int[] b, int[] x)
{
    string s;
    for(int i=0;i<n;i++)
    {
        s.push_back('B');
    }
    craft(s);
}

Compilation message (stderr)

gift.cpp:8:35: error: expected ',' or '...' before 'a'
    8 | int construct(int n, int r, int[] a, int[] b, int[] x)
      |                                   ^
gift.cpp: In function 'long long int construct(long long int, long long int, long long int*)':
gift.cpp:15:5: error: 'craft' was not declared in this scope
   15 |     craft(s);
      |     ^~~~~
gift.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
   16 | }
      | ^