Submission #313511

#TimeUsernameProblemLanguageResultExecution timeMemory
313511Jarif_RahmanCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include "mycombo.h" #include <bits/stdc++.h> #define pb push_back #define f first #define sc second using namespace std; typedef long long int ll; typedef string str; str guess_sequence(int n){ str s = ""; int r = 0; while(n--){ int ab = press(s+"A"+s+"B"); int xy = press(s+"X"+s+"Y"); if(ab > r){ int a = press(s+"A"); int b = press(s+"B"); if(a > r){ s+="A"; r = a; continue; } if(b > r){ s+="B"; r = b; continue; } } if(xy > r){ int x = press(s+"X"); int y = press(s+"Y"); if(x > r){ s+="X"; r = x; continue; } if(y > r){ s+="Y"; r = y; continue; } } } return s; } int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout << guess_sequence(5) << "\n"; }

Compilation message (stderr)

combo.cpp:1:10: fatal error: mycombo.h: No such file or directory
    1 | #include "mycombo.h"
      |          ^~~~~~~~~~~
compilation terminated.