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_35940617_12296.cpp: In function 'void acheng(char*, int, int)':
0_0_35940617_12296.cpp:5:5: error: 'ans' was not declared in this scope
     ans++;
     ^
0_0_35940617_12296.cpp: In function 'int main()':
0_0_35940617_12296.cpp:26:27: error: expected initializer before ']' token
         char a[500],b[500]];
                           ^
0_0_35940617_12296.cpp:28:32: error: 'b' was not declared in this scope
         for(int i=0;i<500;i++){b[i]=a[i]='0';}
                                ^
0_0_35940617_12296.cpp:29:21: error: 'b' was not declared in this scope
         cin>>a+100>>b+100;
                     ^
0_0_35940617_12296.cpp:32:13: error: 'i' was not declared in this scope
         for(i=0;a[i-1]!='.';i++)
             ^
0_0_35940617_12296.cpp:37:17: error: expected primary-expression before ')' token
         for(c=1;)
                 ^
0_0_35940617_12296.cpp:37:17: error: expected ';' before ')' token


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-17 03:28:33, Gzip enabled