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_17064974_6077.cpp: In function 'int main()':
0_0_17064974_6077.cpp:6:26: error: invalid types 'char[int]' for array subscript
     while(scanf("%c",&s[0])!=EOF)
                          ^
0_0_17064974_6077.cpp:6:27: error: 'scanf' was not declared in this scope
     while(scanf("%c",&s[0])!=EOF)
                           ^
0_0_17064974_6077.cpp:6:30: error: 'EOF' was not declared in this scope
     while(scanf("%c",&s[0])!=EOF)
                              ^
0_0_17064974_6077.cpp:10:18: error: invalid types 'char[int]' for array subscript
         while(s[i]!='\n')
                  ^
0_0_17064974_6077.cpp:13:19: error: invalid types 'char[int]' for array subscript
             if(s[i]>='0'&&s[i]<='9')
                   ^
0_0_17064974_6077.cpp:13:30: error: invalid types 'char[int]' for array subscript
             if(s[i]>='0'&&s[i]<='9')
                              ^
0_0_17064974_6077.cpp:17:28: error: invalid types 'char[int]' for array subscript
             scanf("%c",&s[i]);
                            ^
0_0_17064974_6077.cpp:19:24: error: 'printf' was not declared in this scope
         printf("%d\n",a);
                        ^


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.001000(s) query 1, Server time : 2025-02-27 19:30:21, Gzip enabled