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


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-02-18 16:26:08, Gzip enabled