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_13088154_22044.cpp:6:8: error: 'student std [50]' redeclared as different kind of symbol
 }std[50];
        ^
<built-in>: note: previous declaration 'namespace std { }'
0_0_13088154_22044.cpp: In function 'int main()':
0_0_13088154_22044.cpp:17:7: error: expected primary-expression before '[' token
    std[i].student_avrage = 0;
       ^
0_0_13088154_22044.cpp:28:8: error: expected primary-expression before '[' token
     std[i].grade[j] = t;
        ^
0_0_13088154_22044.cpp:29:8: error: expected primary-expression before '[' token
     std[i].student_avrage += 1.0*t / m;
        ^
0_0_13088154_22044.cpp:38:13: error: expected primary-expression before '[' token
      if (std[i].grade[j]>=subject_avrage[j])
             ^
0_0_13088154_22044.cpp:50:24: error: expected primary-expression before '[' token
    printf("%.2lf ", std[i].student_avrage);
                        ^


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-15 03:14:46, Gzip enabled