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_21043100_15663.cpp: In member function 'void Array::fold_R(int)':
0_0_21043100_15663.cpp:58:21: error: 'fold_L' was not declared in this scope
         fold_L(n - k);
                     ^
0_0_21043100_15663.cpp: In function 'int main()':
0_0_21043100_15663.cpp:76:21: error: expected ')' before '}' token
             switch(c}{
                     ^
0_0_21043100_15663.cpp:76:21: error: expected primary-expression before '}' token
0_0_21043100_15663.cpp:77:17: error: case label ''L'' not within a switch statement
                 case 'L':A.fold_L(v);break;
                 ^
0_0_21043100_15663.cpp:77:28: error: 'struct Array' has no member named 'fold_L'
                 case 'L':A.fold_L(v);break;
                            ^
0_0_21043100_15663.cpp:78:17: error: case label ''R'' not within a switch statement
                 case 'R':A.fold_R(v);break;
                 ^
0_0_21043100_15663.cpp:79:17: error: case label ''D'' not within a switch statement
                 case 'D':B.fold_L(v);break;
                 ^
0_0_21043100_15663.cpp:79:28: error: 'struct Array' has no member named 'fold_L'
                 case 'D':B.fold_L(v);break;
                            ^
0_0_21043100_15663.cpp:80:17: error: case label ''U'' not within a switch statement
                 case 'U':B.fold_R(v);break;
                 ^
0_0_21043100_15663.cpp:83:35: error: 'cas' was not declared in this scope
         printf("Case %d: %lld\n", cas++, A.ans * W + B.ans * L);  
                                   ^
0_0_21043100_15663.cpp:83:50: error: 'W' was not declared in this scope
         printf("Case %d: %lld\n", cas++, A.ans * W + B.ans * L);  
                                                  ^
0_0_21043100_15663.cpp:83:62: error: 'L' was not declared in this scope
         printf("Case %d: %lld\n", cas++, A.ans * W + B.ans * L);  
                                                              ^
0_0_21043100_15663.cpp: At global scope:
0_0_21043100_15663.cpp:85:5: error: expected unqualified-id before 'return'
     return 0;  
     ^
0_0_21043100_15663.cpp:86: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-01-11 00:46:10, Gzip enabled