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_34074395_21608.cpp: In function 'int main()':
0_0_34074395_21608.cpp:12:2: error: 'cin' was not declared in this scope
  cin>>a;
  ^
0_0_34074395_21608.cpp:25:23: error: invalid types 'int[int]' for array subscript
    s[b+q-1].time=((t[0]-'0')*10+(t[1]-'0'))*3600+((t[3]-'0')*10+(t[4]-'0'))*60+((t[6]-'0')*10+(t[7]-'0'));
                       ^
0_0_34074395_21608.cpp:25:37: error: invalid types 'int[int]' for array subscript
    s[b+q-1].time=((t[0]-'0')*10+(t[1]-'0'))*3600+((t[3]-'0')*10+(t[4]-'0'))*60+((t[6]-'0')*10+(t[7]-'0'));
                                     ^
0_0_34074395_21608.cpp:25:55: error: invalid types 'int[int]' for array subscript
    s[b+q-1].time=((t[0]-'0')*10+(t[1]-'0'))*3600+((t[3]-'0')*10+(t[4]-'0'))*60+((t[6]-'0')*10+(t[7]-'0'));
                                                       ^
0_0_34074395_21608.cpp:25:69: error: invalid types 'int[int]' for array subscript
    s[b+q-1].time=((t[0]-'0')*10+(t[1]-'0'))*3600+((t[3]-'0')*10+(t[4]-'0'))*60+((t[6]-'0')*10+(t[7]-'0'));
                                                                     ^
0_0_34074395_21608.cpp:25:85: error: invalid types 'int[int]' for array subscript
    s[b+q-1].time=((t[0]-'0')*10+(t[1]-'0'))*3600+((t[3]-'0')*10+(t[4]-'0'))*60+((t[6]-'0')*10+(t[7]-'0'));
                                                                                     ^
0_0_34074395_21608.cpp:25:99: error: invalid types 'int[int]' for array subscript
    s[b+q-1].time=((t[0]-'0')*10+(t[1]-'0'))*3600+((t[3]-'0')*10+(t[4]-'0'))*60+((t[6]-'0')*10+(t[7]-'0'));
                                                                                                   ^
0_0_34074395_21608.cpp:32:17: error: 'NULL' was not declared in this scope
    student *stu=NULL; 
                 ^
0_0_34074395_21608.cpp:50:17: error: 'NULL' was not declared in this scope
    student *stu=NULL; 
                 ^
0_0_34074395_21608.cpp:68:17: error: 'NULL' was not declared in this scope
    student *stu=NULL; 
                 ^
0_0_34074395_21608.cpp:86:17: error: 'NULL' was not declared in this scope
    student *stu=NULL; 
                 ^
0_0_34074395_21608.cpp:104:2: error: 'cout' was not declared in this scope
  cout<<s[0].score<<endl;
  ^
0_0_34074395_21608.cpp:104:20: error: 'endl' was not declared in this scope
  cout<<s[0].score<<endl;
                    ^


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-17 10:40:31, Gzip enabled