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_13778420_10654.cpp: In function 'void push_up(int)':
0_0_13778420_10654.cpp:57:17: error: 'mod' was not declared in this scope
  if(sum[pos] >= mod) sum[pos] -= mod;
                 ^
0_0_13778420_10654.cpp: In function 'int main()':
0_0_13778420_10654.cpp:112:14: error: 'mod' was not declared in this scope
    if(ans >= mod) ans -= mod;
              ^
0_0_13778420_10654.cpp:115:16: error: too few arguments to function 'void update(int, int, int, int, int)'
    update(l,r,1);
                ^
0_0_13778420_10654.cpp:73:6: note: declared here
 void update(int l_aim,int r_aim,int l,int r,int pos){
      ^
0_0_13778420_10654.cpp: In instantiation of 'void pt(T) [with T = const char*]':
0_0_13778420_10654.cpp:114:9:   required from here
0_0_13778420_10654.cpp:44:7: error: wrong type argument to unary minus
   x = -x;
       ^
0_0_13778420_10654.cpp:46:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  if(x > 9) pt(x / 10);
       ^
0_0_13778420_10654.cpp:46:17: error: invalid operands of types 'const char*' and 'int' to binary 'operator/'
  if(x > 9) pt(x / 10);
                 ^
0_0_13778420_10654.cpp:47:12: error: invalid operands of types 'const char*' and 'int' to binary 'operator%'
  putchar(x % 10 + '0');
            ^


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-07-06 03:58:21, Gzip enabled