제출 #546508

#제출 시각아이디문제언어결과실행 시간메모리
546508srivatsav_kannan콤보 (IOI18_combo)C++14
컴파일 에러
0 ms0 KiB
#include <iostream> #include <fstream> #include <vector> #include <set> #include <queue> #include <cmath> #include <map> #include <algorithm> #include <numeric> #include <stack> #include <cstring> #include <bitset> #include <climits> #include <valarray> #include <list> #define int long long #define INF 1000000000 #define endl '\n' #define mod 1000000007 using namespace std; string guess_sequence(int n){ string ans; string ar[4] = {"A", "B", "X", "Y"}; for (int i = 0; i < n; i++){ for (int i = 0; i < 4; i++) if (press(ar[i]) == 1) ans += ar[i]; } return ans; } //signed main(){ // ios_base::sync_with_stdio(false); // cin.tie(0); // cout.tie(0); // //}

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

combo.cpp: In function 'std::string guess_sequence(long long int)':
combo.cpp:25:41: error: 'press' was not declared in this scope
   25 |         for (int i = 0; i < 4; i++) if (press(ar[i]) == 1) ans += ar[i];
      |                                         ^~~~~