제출 #1001124

#제출 시각아이디문제언어결과실행 시간메모리
1001124TobBroken Device (JOI17_broken_device)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "Anna.h" #define F first #define S second #define all(x) x.begin(), x.end() #define pb push_back #define FIO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0) using namespace std; typedef long long ll; typedef pair <ll, ll> pii; void Anna(int n, ll x, int k, int p[]) { int bio[150] = {0}, a[150] = {0}; for (int i = 0; i < k; i++) bio[p[i]] = 1; for (ll i = 0, j = 0; i < n; i += 3) { int sum = bio[i]+bio[i+1]+bio[i+2]; if (sum > 1) continue; int o = ((x >> j) & 1), o2 = ((x >> (j+1)) & 1); if (o) { if (sum == 0) a[i+1] = a[i+2] = 1, a[i] = o2, j += 2; else a[i] = bio[i+2], a[i+1] = bio[i+2], a[i+2] = bio[i+2]^1, j++; } else { if (bio[i+1] || sum == 0) a[i] = 1, a[i+2] = o2, j += 2; else a[i+1] = 1, j++; } } for (int i = 0; i < n; i++) Set(i, a[i]); }
#include <bits/stdc++.h> #include "Bruno.h" #define F first #define S second #define all(x) x.begin(), x.end() #define pb push_back #define FIO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0) using namespace std; typedef long long ll; typedef pair <ll, ll> pii; ll Bruno(int n, int a[]) { ll x = 0; for (int i = n-3; i >= 0; i -= 3) { int o = 4*a[i]+2*a[i+1]+a[i+2]; if (o == 0) continue; if (zn[o] == 1) x = 2*x+va[o]; else x = 4*x+va[o]; } return x; }

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

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

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