Submission #1101346

#TimeUsernameProblemLanguageResultExecution timeMemory
1101346WarinchaiMechanical Doll (IOI18_doll)C++14
2 / 100
15 ms3248 KiB
#include "doll.h" #include<bits/stdc++.h> using namespace std; void create_circuit(int M, std::vector<int> A) { int N=A.size(); vector<int>C(M+1); int prev=0; for(int i=0;i<A.size();i++){ C[prev]=A[i]; prev=A[i]; } C[prev]=0; answer(C, vector<int>(), vector<int>()); }

Compilation message (stderr)

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