Submission #369864

#TimeUsernameProblemLanguageResultExecution timeMemory
369864flappybirdMechanical Doll (IOI18_doll)C++14
2 / 100
48 ms5168 KiB
#include "doll.h" #include <bits/stdc++.h> void create_circuit(int M, std::vector<int> A) { int N = A.size(); std::vector<int> C(M + 1); int i; C[0] = A[0]; for (i = 0; i < A.size() - 1; i++) { C[A[i]] = A[i + 1]; } C[A[A.size() - 1]] = 0; std::vector<int> X(N), Y(N); answer(C, X, Y); }

Compilation message (stderr)

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:8:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |  for (i = 0; i < A.size() - 1; i++) {
      |              ~~^~~~~~~~~~~~~~
#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...