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_26579622_25826.cpp: In function 'int main()':
0_0_26579622_25826.cpp:5:27: error: expected unqualified-id before 'class'
     float student[101][6],class[6],sum[101];
                           ^
0_0_26579622_25826.cpp:10:16: error: expected primary-expression before 'class'
         memset(class,0,6);
                ^
0_0_26579622_25826.cpp:11:16: error: 'sum' was not declared in this scope
         memset(sum,0,101);
                ^
0_0_26579622_25826.cpp:34:17: error: expected primary-expression before 'class'
                 class[i]+=student[t][i];
                 ^
0_0_26579622_25826.cpp:36:27: error: expected primary-expression before 'class'
             printf("%.2f",class[i]/n);
                           ^
0_0_26579622_25826.cpp:43:31: error: expected primary-expression before 'class'
             {if(student[t][i]<class[i]/n)
                               ^
0_0_26579622_25826.cpp:43:31: error: expected ')' before 'class'


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-26 06:54:26, Gzip enabled