Submission #465805

#TimeUsernameProblemLanguageResultExecution timeMemory
465805habibaissaHandcrafted 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; void craft (string s); 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:10:35: error: expected ',' or '...' before 'a'
   10 | 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:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | }
      | ^