Submission #139252

#TimeUsernameProblemLanguageResultExecution timeMemory
139252wilwxkMechanical Doll (IOI18_doll)C++14
0 / 100
61 ms4872 KiB
#include "doll.h" #include <bits/stdc++.h> using namespace std; const int MAXN=2e5+5; vector<int> c, x, y; int n, 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(); respf=1; if(n==1) { c.push_back(1); c.push_back(0); answer(c, x, y); return; } c.push_back(1); c.push_back(-1); for(int i=1; i<=n-1; i++) { if(i==1) x.push_back(1); else x.push_back(-i+1); y.push_back(-i-1); } y.back()=0; 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...