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_28755296_24449.cpp: In function 'void CalC()':
0_0_28755296_24449.cpp:11:51: error: 'mo' was not declared in this scope
             else C[i][j] = (C[i-1][j]+C[i-1][j-1]+mo)%mo;
                                                   ^
0_0_28755296_24449.cpp: In function 'int main()':
0_0_28755296_24449.cpp:29:59: error: 'mo' was not declared in this scope
                         sum = (sum + (K-k+1)*C[r-1][j-1])%mo;
                                                           ^
0_0_28755296_24449.cpp:34:15: error: 'sum' was not declared in this scope
         cout<<sum<<endl;
               ^
0_0_28755296_24449.cpp: At global scope:
0_0_28755296_24449.cpp:36:5: error: expected unqualified-id before 'return'
     return 0;
     ^
0_0_28755296_24449.cpp:37:1: error: expected declaration before '}' token
 }
 ^


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-12-05 10:12:41, Gzip enabled