제출 #89616

#제출 시각아이디문제언어결과실행 시간메모리
89616asifthegreat콤보 (IOI18_combo)C++14
10 / 100
118 ms432 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; std::string guess_sequence(int N) { //doit(0,N); string p; //char ch = '}'; for(int i = 0; i < N;i++){ p.push_back('A'); int k = press(p); if(k==p.size())continue; p.pop_back(); p.push_back('B'); k = press(p); if(k == p.size())continue; p.pop_back(); p.push_back('X'); k = press(p); if(k == p.size())continue; p.pop_back(); p.push_back('Y'); k = press(p); if(k == p.size())continue; p.pop_back(); } //cout << p << endl; return p; }

컴파일 시 표준 에러 (stderr) 메시지

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:14:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |         if(k==p.size())continue;
      |            ~^~~~~~~~~~
combo.cpp:19:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   19 |         if(k == p.size())continue;
      |            ~~^~~~~~~~~~~
combo.cpp:24:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |         if(k == p.size())continue;
      |            ~~^~~~~~~~~~~
combo.cpp:29:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   29 |         if(k == p.size())continue;
      |            ~~^~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...