Submission #237273

#TimeUsernameProblemLanguageResultExecution timeMemory
237273michaoCave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "cave.h" #define ll long long int #define mp make_pair #define pb push_back #define ld long double #define pii pair<int,int> #define sz(x) (int)x.size() #define piii pair<pii,pii> #define precise cout<<fixed<<setprecision(10) #define st first #define nd second #define ins insert #define vi vector<int> #define BOOST ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; const int MAX=5005; void exploreCave(int n) { int ans1[n],ans2[n]; for (int i=0;i<n;i++)ans1[i]=0,ans2[i]=i+1; ans1.clear(),ans2.clear(); for (int i=0;i<n;i++) { } answer(ans1,ans2); } int32_t main() { BOOST; return 0; }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:22:7: error: request for member 'clear' in 'ans1', which is of non-class type 'int [n]'
  ans1.clear(),ans2.clear();
       ^~~~~
cave.cpp:22:20: error: request for member 'clear' in 'ans2', which is of non-class type 'int [n]'
  ans1.clear(),ans2.clear();
                    ^~~~~