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_17078489_31708.cpp:3:11: error: '::main' must return 'int'
 void main(){
           ^
0_0_17078489_31708.cpp: In function 'int main()':
0_0_17078489_31708.cpp:4:5: error: expected unqualified-id before 'case'
 int case,k;
     ^
0_0_17078489_31708.cpp:5:6: error: expected primary-expression before 'case'
 cin>>case;
      ^
0_0_17078489_31708.cpp:6:9: error: expected primary-expression before 'case'
 float a[case],b[case];
         ^
0_0_17078489_31708.cpp:6:9: error: expected ']' before 'case'
0_0_17078489_31708.cpp:9:5: error: 'k' was not declared in this scope
 for(k=0;k<case;k++){
     ^
0_0_17078489_31708.cpp:9:11: error: expected primary-expression before 'case'
 for(k=0;k<case;k++){
           ^
0_0_17078489_31708.cpp:9:11: error: expected ';' before 'case'
0_0_17078489_31708.cpp:9:11: error: expected primary-expression before 'case'
0_0_17078489_31708.cpp:9:11: error: expected ')' before 'case'
0_0_17078489_31708.cpp:9:15: error: expected primary-expression before ';' token
 for(k=0;k<case;k++){
               ^
0_0_17078489_31708.cpp:9:11: error: case label '<expression error>' not within a switch statement
 for(k=0;k<case;k++){
           ^
0_0_17078489_31708.cpp:9:15: error: expected ':' before ';' token
 for(k=0;k<case;k++){
               ^
0_0_17078489_31708.cpp:9:16: error: 'k' was not declared in this scope
 for(k=0;k<case;k++){
                ^
0_0_17078489_31708.cpp:13:11: error: expected primary-expression before 'case'
 for(k=0;k<case;k++){
           ^
0_0_17078489_31708.cpp:13:11: error: expected ';' before 'case'
0_0_17078489_31708.cpp:13:11: error: expected primary-expression before 'case'
0_0_17078489_31708.cpp:13:11: error: expected ')' before 'case'
0_0_17078489_31708.cpp:13:15: error: expected primary-expression before ';' token
 for(k=0;k<case;k++){
               ^
0_0_17078489_31708.cpp:13:11: error: case label '<expression error>' not within a switch statement
 for(k=0;k<case;k++){
           ^
0_0_17078489_31708.cpp:13:15: error: expected ':' before ';' token
 for(k=0;k<case;k++){
               ^


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-25 20:33:39, Gzip enabled