Submission #1099733

#TimeUsernameProblemLanguageResultExecution timeMemory
1099733model_codeMachine (IOI24_machine)C++17
19 / 100
15 ms708 KiB
// incorrect/sol_2.cpp #include <bits/stdc++.h> #include "machine.h" using namespace std; vector<int> find_permutation(int n) { vector<int> v(n,0); auto ret=use_machine(v); int x=ret[0]; for(int i=0;i<v.size();i++) v[i]=i; v=use_machine(v); for(int i=0;i<v.size();i++) v[i]=v[i]^x; return v; }

Compilation message (stderr)

machine.cpp: In function 'std::vector<int> find_permutation(int)':
machine.cpp:13:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |  for(int i=0;i<v.size();i++)
      |              ~^~~~~~~~~
machine.cpp:16:15: 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<v.size();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...
#Verdict Execution timeMemoryGrader output
Fetching results...