/in/foo.cc: In function 'int main()':
/in/foo.cc:28:7: error: 'n' was not declared in this scope
cin>>n;
^
/in/foo.cc:29:6: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
/in/foo.cc:31:8: error: 'a' was not declared in this scope
cin>>a[i]>>b[i]>>c[i];
^
/in/foo.cc:31:14: error: 'b' was not declared in this scope
cin>>a[i]>>b[i]>>c[i];
^
/in/foo.cc:31:20: error: 'c' was not declared in this scope
cin>>a[i]>>b[i]>>c[i];
^
/in/foo.cc:33:6: error: 'i' was not declared in this scope
for(i=1;i<=n-1;i++)
^
/in/foo.cc:35:5: error: 'a' was not declared in this scope
w(a[i],b[i],c[i]);
^
/in/foo.cc:35:10: error: 'b' was not declared in this scope
w(a[i],b[i],c[i]);
^
/in/foo.cc:35:15: error: 'c' was not declared in this scope
w(a[i],b[i],c[i]);
^
/in/foo.cc:35:19: error: 'w' cannot be used as a function
w(a[i],b[i],c[i]);
^
/in/foo.cc:36:38: error: 'w' cannot be used as a function
cout<<"w(x,y,z)="<<w(a[i],b[i],c[i])<<endl;
^