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_30405589_10635.cpp: In function 'void update(int, int, int, int)':
0_0_30405589_10635.cpp:18:17: error: 'n' was not declared in this scope
         seg[rt]=n+1;
                 ^
0_0_30405589_10635.cpp: In function 'int query(int, int, int, int, int)':
0_0_30405589_10635.cpp:29:16: error: 'n' was not declared in this scope
         return n+1;
                ^
0_0_30405589_10635.cpp:31:43: error: 'n' was not declared in this scope
     int mid=(l+r)>>1,lc=rt<<1,rc=lc|1,res=n+1;
                                           ^
0_0_30405589_10635.cpp: In function 'int main()':
0_0_30405589_10635.cpp:46:9: error: 'ans' was not declared in this scope
         ans=0;
         ^
0_0_30405589_10635.cpp:50:22: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
                 case "1":{
                      ^
0_0_30405589_10635.cpp:50:22: error: '(int)((long long int)"1")' is not a constant expression
0_0_30405589_10635.cpp:55:22: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
                 case "2":{
                      ^
0_0_30405589_10635.cpp:55:22: error: '(int)((long long int)"2")' is not a constant expression


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-09-28 00:20:40, Gzip enabled