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_37783897_2787.cpp: In function 'void MAIN::pre()':
0_0_37783897_2787.cpp:43:9: error: 'fac' was not declared in this scope
         fac[0]=fac[1]=inv[0]=inv[1]=1;
         ^
0_0_37783897_2787.cpp:43:23: error: 'inv' was not declared in this scope
         fac[0]=fac[1]=inv[0]=inv[1]=1;
                       ^
0_0_37783897_2787.cpp: In function 'int MAIN::C(const int&, const int&)':
0_0_37783897_2787.cpp:48:26: error: 'fac' was not declared in this scope
         return x<y?0:mul(fac[x],mul(inv[y],inv[x-y]));
                          ^
0_0_37783897_2787.cpp:48:37: error: 'inv' was not declared in this scope
         return x<y?0:mul(fac[x],mul(inv[y],inv[x-y]));
                                     ^
0_0_37783897_2787.cpp: In function 'int MAIN::Add(const int&, const int&)':
0_0_37783897_2787.cpp:56:5: error: expected ';' before 'inline'
     inline void change(const res &rt,const res &v){
     ^
0_0_37783897_2787.cpp:56:51: error: a function-definition is not allowed here before '{' token
     inline void change(const res &rt,const res &v){
                                                   ^
0_0_37783897_2787.cpp:59:40: error: a function-definition is not allowed here before '{' token
     inline void pushdown(const res &rt){
                                        ^
0_0_37783897_2787.cpp:63:38: error: a function-definition is not allowed here before '{' token
     inline void pushup(const res &rt){
                                      ^
0_0_37783897_2787.cpp:66:35: error: a function-definition is not allowed here before '{' token
     void build(res rt,res l,res r){
                                   ^
0_0_37783897_2787.cpp:165:1: error: expected '}' at end of input
 }
 ^
0_0_37783897_2787.cpp: At global scope:
0_0_37783897_2787.cpp:165:1: error: expected '}' at end of input


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-11-23 09:59:43, Gzip enabled