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_13810825_2982.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13810825_2982.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13810825_2982.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13810825_2982.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13810825_2982.cpp: In function 'int main()':
0_0_13810825_2982.cpp:19:23: error: 'scanf' was not declared in this scope
  while(scanf("%d", &gn) == 1 && gn) {
                       ^
0_0_13810825_2982.cpp:22:3: error: expected ';' before 'for'
   for(int i = 0; i 
   ^
0_0_13810825_2982.cpp:22:3: error: expected primary-expression before 'for'
0_0_13810825_2982.cpp:22:3: error: expected ')' before 'for'
0_0_13810825_2982.cpp:23:4: error: expected ';' before 'scanf'
    scanf("%d%d", &x, &y);
    ^
0_0_13810825_2982.cpp:23:25: error: expected ')' before ';' token
    scanf("%d%d", &x, &y);
                         ^
0_0_13810825_2982.cpp:32:4: error: expected ';' before 'if'
    if(f[i] == i) cnt++;
    ^
0_0_13810825_2982.cpp:32:4: error: expected primary-expression before 'if'
0_0_13810825_2982.cpp:32:4: error: expected ')' before 'if'
0_0_13810825_2982.cpp: At global scope:
0_0_13810825_2982.cpp:34:9: error: expected constructor, destructor, or type conversion before '(' token
   printf("%d\n", cnt-1);
         ^
0_0_13810825_2982.cpp:35:2: error: expected declaration before '}' token
  }
  ^


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-30 10:03:07, Gzip enabled