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_38819837_2754.cpp: In function 'int judgeCross(stick, stick)':
0_0_38819837_2754.cpp:27:22: error: 'amp' was not declared in this scope
   27 |         if(pan1==-1 && pan2 == -1) return 2;
      |                      ^~~
0_0_38819837_2754.cpp:27:30: error: expected ')' before ';' token
   27 |         if(pan1==-1 && pan2 == -1) return 2;
      |           ~                  ^
      |                              )
0_0_38819837_2754.cpp:27:42: error: expected ';' before ')' token
   27 |         if(pan1==-1 && pan2 == -1) return 2;
      |                                          ^
      |                                          ;
0_0_38819837_2754.cpp:28:9: error: 'else' without a previous 'if'
   28 |         else return 1;
      |         ^~~~
0_0_38819837_2754.cpp: In function 'int main()':
0_0_38819837_2754.cpp:33:20: error: 'amp' was not declared in this scope
   33 |    while(cin>>num && num){
      |                    ^~~
0_0_38819837_2754.cpp:33:23: error: expected ')' before ';' token
   33 |    while(cin>>num && num){
      |         ~             ^
      |                       )
0_0_38819837_2754.cpp:33:25: error: 'amp' was not declared in this scope
   33 |    while(cin>>num && num){
      |                         ^~~
0_0_38819837_2754.cpp:33:33: error: expected ';' before ')' token
   33 |    while(cin>>num && num){
      |                                 ^
      |                                 ;


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.000000(s) query 1, Server time : 2025-02-17 07:44:05, Gzip enabled