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;
^
|