Submission #139259

#TimeUsernameProblemLanguageResultExecution timeMemory
139259wilwxkMechanical Doll (IOI18_doll)C++14
2 / 100
39 ms2180 KiB
#include "doll.h" #include <bits/stdc++.h> using namespace std; const int MAXN=2e5+5; vector<int> c, x, y; int n, m, respf; void debug() { for(auto cur : c) printf("%d ", cur); cout << endl; for(auto cur : x) printf("%d ", cur); cout << endl; for(auto cur : y) printf("%d ", cur); cout << endl; } void create_circuit(int M, std::vector<int> A) { n=A.size(); m=M; respf=1; c.resize(m+1); fill(c.begin(), c.end(), 0); int cur=0; for(int i=0; i<=n; i++) c[cur]=A[i], cur=A[i]; answer(c, x, y); }

Compilation message (stderr)

doll.cpp: In function 'void debug()':
doll.cpp:10:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   10 |   for(auto cur : c) printf("%d ", cur); cout << endl;
      |   ^~~
doll.cpp:10:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   10 |   for(auto cur : c) printf("%d ", cur); cout << endl;
      |                                         ^~~~
doll.cpp:11:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   11 |   for(auto cur : x) printf("%d ", cur); cout << endl;
      |   ^~~
doll.cpp:11:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   11 |   for(auto cur : x) printf("%d ", cur); cout << endl;
      |                                         ^~~~
doll.cpp:12:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   12 |   for(auto cur : y) printf("%d ", cur); cout << endl;
      |   ^~~
doll.cpp:12:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   12 |   for(auto cur : y) printf("%d ", cur); cout << endl;
      |                                         ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...