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_32865198_3846.cpp:1:7: error: stray '#' in program
 <code>#include <cstdio>
       ^
0_0_32865198_3846.cpp:1:1: error: expected unqualified-id before '<' token
 <code>#include <cstdio>
 ^
0_0_32865198_3846.cpp: In function 'void work()':
0_0_32865198_3846.cpp:48:43: error: 'scanf' was not declared in this scope
     for(int i=1;i<=n;i++) scanf("%lld",a+i);
                                           ^
0_0_32865198_3846.cpp:53:22: error: 'scanf' was not declared in this scope
         scanf("%s",op);
                      ^
0_0_32865198_3846.cpp:64:51: error: 'printf' was not declared in this scope
             printf("%lld\n",query(root[k],1,n,l,r));
                                                   ^
0_0_32865198_3846.cpp: In function 'int main()':
0_0_32865198_3846.cpp:72:29: error: 'scanf' was not declared in this scope
     while(scanf("%d%d",&n,&m)!=EOF) work();
                             ^
0_0_32865198_3846.cpp:72:32: error: 'EOF' was not declared in this scope
     while(scanf("%d%d",&n,&m)!=EOF) work();
                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 21:43:03, Gzip enabled