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_14135599_3766.cpp: In function 'int main()':
0_0_14135599_3766.cpp:28:13: error: 'else' without a previous 'if'
             else if(n == 5)cal('*');cal('*');cal('-');cal('/');
             ^
0_0_14135599_3766.cpp:29:13: error: 'else' without a previous 'if'
             else if(n == 6)cal('*');cal('*');cal('/');cal('-');cal('-');
             ^
0_0_14135599_3766.cpp:30:13: error: 'else' without a previous 'if'
             else if(n == 7)cal('+');cal('+');cal('/');cal('+');cal('+');cal('+');
             ^
0_0_14135599_3766.cpp:31:13: error: 'else' without a previous 'if'
             else if(n == 8)cal('-');cal('*');cal('*');cal('*');cal('+');cal('+');cal('+');
             ^
0_0_14135599_3766.cpp:32:13: error: 'else' without a previous 'if'
             else if(n == 9)cal('+');cal('+');cal('+');cal('+');cal('+');cal('/');cal('+');cal('+');
             ^
0_0_14135599_3766.cpp:33:13: error: 'else' without a previous 'if'
             else if(n <= 12) {
             ^


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 03:20:01, Gzip enabled