Submission #92980

#TimeUsernameProblemLanguageResultExecution timeMemory
92980beso123Combo (IOI18_combo)C++14
5 / 100
2 ms200 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string a="ABXY"; string guess_sequence(int N){ string s=""; for(int k=0;k<a.size();k++){ string b=s+a[k]; if(press(b)==1){ s+=a[k]; break; } } for(int k=0;k<a.size();k++){ string b=s+a[k]; if(press(b)==2){ s=b; break; } } for(int k=0;k<a.size();k++){ string b=s+a[k]; if(press(b)==3){ s=b; break; } } return s; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:8:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 | for(int k=0;k<a.size();k++){
      |             ~^~~~~~~~~
combo.cpp:15:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 | for(int k=0;k<a.size();k++){
      |             ~^~~~~~~~~
combo.cpp:22:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 | for(int k=0;k<a.size();k++){
      |             ~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...