Submission #1170208

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
11702082025-03-19 13:45:54TobCity (JOI17_city)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#incldue "Encoder.h"
#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;
const int maxn = 25e4 + 7;
int tim;
vector <int> adj[maxn];
ll st[maxn], siz[maxn];
vector <ll> v;
void dfs(int x, int p = -1) {
st[x] = tim++;
siz[x] = 1;
for (int y : adj[x]) if (y != p) {
dfs(y, x);
siz[x] += siz[y];
}
int pp = lower_bound(all(v), siz[x]) - v.begin();
siz[x] = v[pp];
tim = st[x] + siz[x];
Code(x, (st[x] << 9) + pp);
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

# 1번째 컴파일 단계

Encoder.cpp:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
    2 | #incldue "Encoder.h"
      |  ^~~~~~~
      |  include
Encoder.cpp: In function 'void dfs(int, int)':
Encoder.cpp:30:9: error: 'Code' was not declared in this scope
   30 |         Code(x, (st[x] << 9) + pp);
      |         ^~~~