제출 #1074059

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
10740592024-08-25 07:26:39shmax죄수들의 도전 (IOI22_prison)C++17
컴파일 에러
0 ms0 KiB
//
// Created by maksym on 8/11/24.
//
#include "prison.h"
#include <bits/stdc++.h>
using namespace std;
#define bit(x, i) ((x >> (i)) & 1)
const int C = 13;
template<typename T>
using vec = vector<T>;
std::vector<std::vector<int>> devise_strategy(int N) {
int x = 2 * C;
vec<vec<int>> s(x + 1, vec<int>(N + 1));
for (int i = 0; i <= x; i++) {
if (i == 0) {
s[i][0] = 1;
for (int j = 1; j <= N; j++) {
s[i][j] = bit(j, C - 1) * C + C;
}
continue;
}
{
int bit_pos = (i - 1) % C;
bool is = i > C;
s[i][0] = bit_pos % 2;
for (int j = 1; j <= N; j++) {
if (is and !bit(j, bit_pos)) {
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

prison.cpp:44:1: error: extended character   is not valid in an identifier
   44 |  
      | ^
prison.cpp:44:1: error: '\U000000a0' does not name a type
   44 |  
      | ^