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_39064101_18910.cpp:1:5: error: stray '#' in program
    1 |   1 #include <stdio.h>
      |     ^
0_0_39064101_18910.cpp:1:3: error: expected unqualified-id before numeric constant
    1 |   1 #include <stdio.h>
      |   ^
0_0_39064101_18910.cpp:4:3: error: expected unqualified-id before numeric constant
    4 |   4 int Kinga,Kingb;//红王坐标
      |   ^
0_0_39064101_18910.cpp:5:3: error: expected unqualified-id before numeric constant
    5 |   5 int Kingc,Kingd;//黑王坐标
      |   ^
0_0_39064101_18910.cpp:6:3: error: expected unqualified-id before numeric constant
    6 |   6 int abs(int a){return a>0?a:-a;}
      |   ^
0_0_39064101_18910.cpp:7:3: error: expected unqualified-id before numeric constant
    7 |   7 int KingFaceToFace()//两王是否相对
      |   ^
0_0_39064101_18910.cpp:20:2: error: expected unqualified-id before numeric constant
   20 |  20 int King(int a,int b,int c,int d)
      |  ^~
0_0_39064101_18910.cpp:41:2: error: expected unqualified-id before numeric constant
   41 |  41 int Mandarins(int a,int b,int c,int d)
      |  ^~
0_0_39064101_18910.cpp:54:2: error: expected unqualified-id before numeric constant
   54 |  54 int Elephants(int a,int b,int c,int d)
      |  ^~
0_0_39064101_18910.cpp:70:2: error: expected unqualified-id before numeric constant
   70 |  70 int Knights(int a,int b,int c,int d)
      |  ^~
0_0_39064101_18910.cpp:93:2: error: expected unqualified-id before numeric constant
   93 |  93 int Rooks(int a,int b,int c,int d)
      |  ^~
0_0_39064101_18910.cpp:121:1: error: expected unqualified-id before numeric constant
  121 | 121 int Cannons(int a,int b,int c,int d)
      | ^~~
0_0_39064101_18910.cpp:161:1: error: expected unqualified-id before numeric constant
  161 | 161 int Pawns(int a,int b,int c,int d)
      | ^~~
0_0_39064101_18910.cpp:184:1: error: expected unqualified-id before numeric constant
  184 | 184 int move(int a,int b,int c,int d,int k)
      | ^~~
0_0_39064101_18910.cpp:209:1: error: expected unqualified-id before numeric constant
  209 | 209 int main()
      | ^~~


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-05-19 06:08:21, Gzip enabled