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_21880286_24569.cpp: In function 'bool leapyear(int)':
0_0_21880286_24569.cpp:7:2: error: 'nbsp' was not declared in this scope
    return year%400==0||(year%4==0&&year%100!=0);
  ^
0_0_21880286_24569.cpp: In function 'int main()':
0_0_21880286_24569.cpp:11:2: error: 'nbsp' was not declared in this scope
     int i,j,k,h,e,f,tmp;
  ^
0_0_21880286_24569.cpp:94:140: error: 'else' without a previous 'if'
                         else
                                                                                                                                            ^
0_0_21880286_24569.cpp:101:92: error: 'else' without a previous 'if'
                 else if(i==2){
                                                                                            ^
0_0_21880286_24569.cpp:112:140: error: expected '}' before 'else'
                         else
                                                                                                                                            ^
0_0_21880286_24569.cpp:112:140: error: expected '}' before 'else'
0_0_21880286_24569.cpp:119:92: error: 'else' without a previous 'if'
                 else if(i==3)
                                                                                            ^
0_0_21880286_24569.cpp:133:164: error: 'else' without a previous 'if'
                             else
                                                                                                                                                                    ^
0_0_21880286_24569.cpp:141:92: error: 'else' without a previous 'if'
                 else if(i==4)
                                                                                            ^
0_0_21880286_24569.cpp:154:164: error: 'else' without a previous 'if'
                             else
                                                                                                                                                                    ^
0_0_21880286_24569.cpp:161:92: error: 'else' without a previous 'if'
                 else if(i==5)
                                                                                            ^
0_0_21880286_24569.cpp:175:188: error: 'else' without a previous 'if'
                                 else
                                                                                                                                                                                            ^
0_0_21880286_24569.cpp:182:92: error: 'else' without a previous 'if'
                 else if(i==6)
                                                                                            ^
0_0_21880286_24569.cpp:197:188: error: 'else' without a previous 'if'
                                 else
                                                                                                                                                                                            ^
0_0_21880286_24569.cpp:204:92: error: 'else' without a previous 'if'
                 else if(i==7)
                                                                                            ^
0_0_21880286_24569.cpp:219:212: error: 'else' without a previous 'if'
                                     else
                                                                                                                                                                                                                    ^
0_0_21880286_24569.cpp:215:290: error: label 'loop1' used but not defined
                                             count++;if(count>4000000)goto loop1;
                                                                                                                                                                                                                                                                                                  ^
0_0_21880286_24569.cpp:221:266: error: label 'loop2' used but not defined
                                         count++;if(count>4000000)goto loop2;
                                                                                                                                                                                                                                                                          ^
0_0_21880286_24569.cpp: At global scope:
0_0_21880286_24569.cpp:228:6: error: expected constructor, destructor, or type conversion before ';' token
     }
      ^
0_0_21880286_24569.cpp:228:12: error: expected constructor, destructor, or type conversion before ';' token
     }
            ^
0_0_21880286_24569.cpp:228:18: error: expected constructor, destructor, or type conversion before ';' token
     }
                  ^
0_0_21880286_24569.cpp:228:20: 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-01-11 06:25:12, Gzip enabled