Submission #297547

#TimeUsernameProblemLanguageResultExecution timeMemory
297547davi_bartMechanical Doll (IOI18_doll)C++14
0 / 100
1 ms332 KiB
#include<bits/stdc++.h> #include "doll.h" using namespace std; #define ll long long #define fi first #define se second void answer(std::vector<int> C, std::vector<int> X, std::vector<int> Y); void create_circuit(int M, std::vector<int> A) { int N = A.size(); std::vector<int> C(M+1,0); vector<int> X,Y; C[0]=A[1]; A.push_back(0); for(int i=0;i<A.size()-1;i++){ C[i]=A[i+1]; } answer(C, X, Y); }

Compilation message (stderr)

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