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_30160177_26795.cpp: In function 'long long int calc(int, int, int)':
0_0_30160177_26795.cpp:106:19: error: 'T' was not declared in this scope
     for(int i=0;i<T;++i) c1[i] += n/T+(n%T>=i);
                   ^
0_0_30160177_26795.cpp:107:19: error: 'T' was not declared in this scope
     for(int i=0;i<T;++i) c2[i] += m/T+(m%T>=i);
                   ^
0_0_30160177_26795.cpp:109:17: error: 'T' was not declared in this scope
     error(n, m, T)
                 ^
0_0_30160177_26795.cpp:13:152: note: in definition of macro 'error'
 #define error(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }
                                                                                                                                                        ^
0_0_30160177_26795.cpp:110:19: error: 'T' was not declared in this scope
     for(int i=0;i<T;++i)
                   ^
0_0_30160177_26795.cpp: In function 'long long int solve(int, int, int, int)':
0_0_30160177_26795.cpp:146:31: error: 'China' was not declared in this scope
     int mo = China(tot, ta, tb);error(mo, T, calc(r-1, u-1, mo))
                               ^
0_0_30160177_26795.cpp:146:43: error: 'T' was not declared in this scope
     int mo = China(tot, ta, tb);error(mo, T, calc(r-1, u-1, mo))
                                           ^
0_0_30160177_26795.cpp:13:152: note: in definition of macro 'error'
 #define error(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }
                                                                                                                                                        ^
0_0_30160177_26795.cpp: In function 'int main()':
0_0_30160177_26795.cpp:158:37: error: 'T' was not declared in this scope
         int m;scanf("%d%d", &n, &m);T=1;
                                     ^


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-26 17:15:34, Gzip enabled