/in/foo.cc: In function 'int main()':
/in/foo.cc:47:7: error: 'i' was not declared in this scope
for (i=0; i<n; i++)
^
/in/foo.cc:47:14: error: 'n' was not declared in this scope
for (i=0; i<n; i++)
^
/in/foo.cc:50:7: error: 'i' was not declared in this scope
for (i=0; i<n; i++)
^
/in/foo.cc:50:14: error: 'n' was not declared in this scope
for (i=0; i<n; i++)
^
/in/foo.cc:52:9: error: redeclaration of 'int b [10000]'
int b[N], nd;
^
/in/foo.cc:49:6: note: 'int b [10000]' previously declared here
int b[N], nb;
^
/in/foo.cc:53:7: error: 'i' was not declared in this scope
for (i=0; i<n; i++)
^
/in/foo.cc:53:14: error: 'n' was not declared in this scope
for (i=0; i<n; i++)
^
/in/foo.cc:54:8: error: 'd' was not declared in this scope
cin>>d[i];
^
/in/foo.cc:52:12: warning: unused variable 'nd' [-Wunused-variable]
int b[N], nd;
^~