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_27950865_9985.cpp: In function 'int main()':
0_0_27950865_9985.cpp:42:8: error: 'i' was not declared in this scope
     if(i!=j)//意思是去掉i这条边// 
        ^
0_0_27950865_9985.cpp:56:14: error: 'i' was not declared in this scope
    for(int j=i+1;j<=n+1;j++)//之所以从i+1开始,是因为要去掉i j这两调皮边//    {
              ^
0_0_27950865_9985.cpp:60:12: error: 'i' was not declared in this scope
      if(k==i||k==j)
            ^
0_0_27950865_9985.cpp:60:18: error: 'j' was not declared in this scope
      if(k==i||k==j)
                  ^
0_0_27950865_9985.cpp:74:17: error: 'ans' was not declared in this scope
   printf("%d\n",ans);
                 ^
0_0_27950865_9985.cpp: At global scope:
0_0_27950865_9985.cpp:76:2: error: expected unqualified-id before 'return'
  return 0; 
  ^
0_0_27950865_9985.cpp:77:1: error: expected declaration before '}' token
 }
 ^


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-28 08:57:54, Gzip enabled