Submission #466734

#TimeUsernameProblemLanguageResultExecution timeMemory
466734habibaissaHandcrafted Gift (IOI20_gift)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
 
 
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);
    return 1;
}

Compilation message (stderr)

gift.cpp:5:35: error: expected ',' or '...' before 'a'
    5 | int construct(int n, int r, int[] a, int[] b, int[] x)
      |                                   ^
gift.cpp: In function 'int construct(int, int, int*)':
gift.cpp:12:5: error: 'craft' was not declared in this scope
   12 |     craft(s);
      |     ^~~~~