F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_35550230_10220.cpp:5:1: error: missing terminating ' character
 constexpr LL mod = 1'000'000'007;
 ^
0_0_35550230_10220.cpp:5:21: error: expected ',' or ';' before '\x303030'
 constexpr LL mod = 1'000'000'007;
                     ^
0_0_35550230_10220.cpp: In function 'int fp(int)':
0_0_35550230_10220.cpp:8:9: error: 'par' was not declared in this scope
  return par[u] < 0 ? u : par[u] = fp(par[u]);
         ^
0_0_35550230_10220.cpp: In function 'int main()':
0_0_35550230_10220.cpp:20:4: error: 'par' was not declared in this scope
    par[i] = -1;
    ^
0_0_35550230_10220.cpp:22:4: error: 'sum' was not declared in this scope
    sum[i] = p - 1;
    ^
0_0_35550230_10220.cpp: In lambda function:
0_0_35550230_10220.cpp:35:21: error: 'sum' was not declared in this scope
    t2 = (t2 + mod - sum[u] * sum[u] % mod) % mod;
                     ^
0_0_35550230_10220.cpp:37:32: error: 'par' was not declared in this scope
    st = (st + mod - sum[u] * (-par[u] - sum[u]) % mod) % mod;
                                ^
0_0_35550230_10220.cpp: In lambda function:
0_0_35550230_10220.cpp:41:15: error: 'sum' was not declared in this scope
    t2 = (t2 + sum[u] * sum[u] % mod) % mod;
               ^
0_0_35550230_10220.cpp:43:26: error: 'par' was not declared in this scope
    st = (st + sum[u] * (-par[u] - sum[u]) % mod) % mod;
                          ^
0_0_35550230_10220.cpp: In function 'int main()':
0_0_35550230_10220.cpp:51:7: error: 'par' was not declared in this scope
    if(par[u] < par[v]) swap(par[u], par[v]);
       ^
0_0_35550230_10220.cpp:54:4: error: 'par' was not declared in this scope
    par[v] += par[u];
    ^
0_0_35550230_10220.cpp:55:4: error: 'sum' was not declared in this scope
    sum[v] += sum[u];
    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-29 20:19:13, Gzip enabled