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_19326476_3435.cpp: In function 'int main()':
0_0_19326476_3435.cpp:7:5: error: expected ',' or ';' before 'int'
     int t=0,tt[500]={0},max=0;
     ^
0_0_19326476_3435.cpp:7:24: error: expected primary-expression before ',' token
     int t=0,tt[500]={0},max=0;
                        ^
0_0_19326476_3435.cpp:7:28: error: overloaded function with no contextual type information
     int t=0,tt[500]={0},max=0;
                            ^
0_0_19326476_3435.cpp:8:23: error: 'tt' was not declared in this scope
     while(scanf("%d",&tt[++t])==1)
                       ^
0_0_19326476_3435.cpp:8:28: error: 't' was not declared in this scope
     while(scanf("%d",&tt[++t])==1)
                            ^
0_0_19326476_3435.cpp:13:5: error: 't' was not declared in this scope
     t--;
     ^
0_0_19326476_3435.cpp:16:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<='
     for(int i=2;i<=max;i++)
                    ^
0_0_19326476_3435.cpp:23:17: error: 'tt' was not declared in this scope
         cout<<n[tt[i]]<<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-09-29 03:35:08, Gzip enabled