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_27357303_32628.cpp: In function 'int main()':
0_0_27357303_32628.cpp:13:13: error: 'cin' was not declared in this scope
             cin>>array1[i];
             ^
0_0_27357303_32628.cpp:13:18: error: 'array1' was not declared in this scope
             cin>>array1[i];
                  ^
0_0_27357303_32628.cpp:17:18: error: 'j' was not declared in this scope
             for( j=1; j<array1[i]; j++)
                  ^
0_0_27357303_32628.cpp:17:25: error: 'array1' was not declared in this scope
             for( j=1; j<array1[i]; j++)
                         ^
0_0_27357303_32628.cpp:30:21: error: 'array2' was not declared in this scope
                     array2[i]=1;
                     ^
0_0_27357303_32628.cpp:36:16: error: 'array2' was not declared in this scope
             if(array2[i]==0)
                ^
0_0_27357303_32628.cpp:38:22: error: 'array1' was not declared in this scope
                 sum+=array1[i];
                      ^
0_0_27357303_32628.cpp:41:9: error: 'cout' was not declared in this scope
         cout<<sum<<endl;
         ^
0_0_27357303_32628.cpp:41:20: error: 'endl' was not declared in this scope
         cout<<sum<<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-30 05:51:55, Gzip enabled