Submission #690635

#TimeUsernameProblemLanguageResultExecution timeMemory
690635saayan007Combo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
 
using ll = long long;
using pi = pair<int, int>;
using pl = pair<long long, long long>;
using vi = vector<int>;
using vl = vector<long long>;
using vpi = vector<pair<int, int>>;
using vpl = vector<pair<long long, long long>>;
 
#define fur(i, a, b) for(ll i = a; i <= (ll)b; ++i)
#define ruf(i, a, b) for(ll i = a; i >= (ll)b; --i)
#define fr first 
#define sc second
#define mp make_pair
#define pb emplace_back
#define nl "\n"
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
 
string guess_sequence(int N) {
    char c[] = {'A', 'B', 'X', 'Y'};
    string ans, cur;
    fur(i, 0, N - 1) {
        for(auto u : c) {
            cur.push_back(u);
            if(press(cur) == i + 1) {
                ans.push_back(u);
                break;
            }
            cur.pop_back();
        }
    }
    return ans;
}

Compilation message (stderr)

combo.cpp:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
combo.cpp:12:1: error: extended character   is not valid in an identifier
   12 |  
      | ^
combo.cpp:22:1: error: extended character   is not valid in an identifier
   22 |  
      | ^
combo.cpp:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
combo.cpp:12:1: error: '\U000000a0' does not name a type
   12 |  
      | ^