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_16503827_66.cpp:6:5: error: expected unqualified-id before '[' token
 char[700] app = "2242888682886824484644846886822242822428662642242844846662646626488682448468868222428224286626444846886822242822428662648868266264448464484622428224284484666264662648868266264224288868288682448462242844846662646626488682224284484666264662648868288682662644484644846224282242844846662646626488682662642242888682886824484622428448466626466264886822242844846662646626488682224284484666264662648868288682662644484644846224284484688682224282242866264886826626444846448462242888682662644484644846224284484688682224282242866264662642242888682886824484688682662644484644846224286626422428886828868244846662642242888682886824484666264"; 
     ^
0_0_16503827_66.cpp:7:5: error: expected unqualified-id before '[' token
 char[7] a = "1264";
     ^
0_0_16503827_66.cpp: In function 'int main()':
0_0_16503827_66.cpp:13:20: error: 'a' was not declared in this scope
     printf("%d\n", a[(s-1)%5]);
                    ^
0_0_16503827_66.cpp:15:19: error: 'app' was not declared in this scope
    printf("%d\n", app[(i-5)%625]);
                   ^
0_0_16503827_66.cpp:15:24: error: 'i' was not declared in this scope
    printf("%d\n", app[(i-5)%625]);
                        ^


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-16 23:17:21, Gzip enabled