Submission #1112303

#TimeUsernameProblemLanguageResultExecution timeMemory
1112303thelegendary08Mechanical Doll (IOI18_doll)C++17
2 / 100
17 ms3528 KiB
#include "doll.h" #include<bits/stdc++.h> #define vi vector<int> #define pb push_back #define f0r(i,n) for(int i = 0; i<n; i++) using namespace std; void create_circuit(int M, std::vector<int> A) { vi v; v.pb(0); for(auto u : A)v.pb(u); v.pb(0); vi c(M+1); vi x; vi y; f0r(i, v.size() - 1){ c[v[i]] = v[i+1]; } answer(c,x,y); }

Compilation message (stderr)

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