foo.cpp: In function 'bool getitall(double*, double*, int, int)':
foo.cpp:45:9: error: 'k' was not declared in this scope
int i; k;
^
foo.cpp:45:6: warning: unused variable 'i' [-Wunused-variable]
int i; k;
^
foo.cpp:46:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
foo.cpp: In function 'bool getitall(double*, double*, int, int)':
foo.cpp:47:6: error: redefinition of 'bool getitall(double*, double*, int, int)'
bool getitall(double x[],double y[],int z,int aa)
^
foo.cpp:43:6: note: 'bool getitall(double*, double*, int, int)' previously defined here
bool getitall(double x[],double y[],int z,int aa)
^
foo.cpp: In function 'int main()':
foo.cpp:61:18: error: 'z' was not declared in this scope
for(i=1;i<=indi[z];i++)
^
foo.cpp:62:6: error: 'x' was not declared in this scope
if(x[i]==y[aa]) return false;
^
foo.cpp:62:12: error: 'y' was not declared in this scope
if(x[i]==y[aa]) return false;
^
foo.cpp:62:14: error: 'aa' was not declared in this scope
if(x[i]==y[aa]) return false;
^
foo.cpp:56:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;double sum=0;
^
foo.cpp:56:17: warning: unused variable 'sum' [-Wunused-variable]
int i,j;double sum=0;
^
foo.cpp: In function 'int main()':
foo.cpp:65:5: error: redefinition of 'int main()'
int main()
^
foo.cpp:54:5: note: 'int main()' previously defined here
int main()
^