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_26637654_4261.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_26637654_4261.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_26637654_4261.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_26637654_4261.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_26637654_4261.cpp: In function 'int main()':
0_0_26637654_4261.cpp:10:35: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d%d",&n,&s,&t))
                                   ^
0_0_26637654_4261.cpp:12:31: error: 'printf' was not declared in this scope
         if(n==1) {printf("0\n");continue;}
                               ^
0_0_26637654_4261.cpp:15:26: error: 'printf' was not declared in this scope
             printf("-1\n");
                          ^
0_0_26637654_4261.cpp:20:40: error: 'printf' was not declared in this scope
             if(t==n||t==1) printf("0\n");
                                        ^
0_0_26637654_4261.cpp:21:30: error: 'printf' was not declared in this scope
             else printf("1\n");
                              ^
0_0_26637654_4261.cpp:27:37: error: 'printf' was not declared in this scope
             if(temp==1) printf("1\n");
                                     ^
0_0_26637654_4261.cpp:28:30: error: 'printf' was not declared in this scope
             else printf("2\n");
                              ^


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-25 16:21:55, Gzip enabled