0_0_34957564_8551.cpp: In function 'void Multiple(int, int*)':
0_0_34957564_8551.cpp:5:14: error: two or more data types in declaration of 'i'
auto int i,k,temp1,temp2;
^
0_0_34957564_8551.cpp:5:16: error: two or more data types in declaration of 'k'
auto int i,k,temp1,temp2;
^
0_0_34957564_8551.cpp:5:18: error: two or more data types in declaration of 'temp1'
auto int i,k,temp1,temp2;
^
0_0_34957564_8551.cpp:5:24: error: two or more data types in declaration of 'temp2'
auto int i,k,temp1,temp2;
^
0_0_34957564_8551.cpp:6:5: error: 'temp1' was not declared in this scope
temp1 = 0;
^
0_0_34957564_8551.cpp:7:9: error: 'k' was not declared in this scope
for(k=MAX-1;!des[k];k--);
^
0_0_34957564_8551.cpp:8:9: error: 'i' was not declared in this scope
for(i=0;i<=k;i++){
^
0_0_34957564_8551.cpp:8:16: error: 'k' was not declared in this scope
for(i=0;i<=k;i++){
^
0_0_34957564_8551.cpp:9:9: error: 'temp2' was not declared in this scope
temp2 = des[i] * n +temp1;
^
0_0_34957564_8551.cpp:12:9: error: 'i' was not declared in this scope
des[i] = temp1;
^
0_0_34957564_8551.cpp: In function 'void Devision(int, int*)':
0_0_34957564_8551.cpp:17:14: error: two or more data types in declaration of 'i'
auto int i,temp1,temp2;
^
0_0_34957564_8551.cpp:17:16: error: two or more data types in declaration of 'temp1'
auto int i,temp1,temp2;
^
0_0_34957564_8551.cpp:17:22: error: two or more data types in declaration of 'temp2'
auto int i,temp1,temp2;
^
0_0_34957564_8551.cpp:18:5: error: 'temp1' was not declared in this scope
temp1 = 0;
^
0_0_34957564_8551.cpp:19:9: error: 'i' was not declared in this scope
for(i=MAX-1;!des[i];i--);
^
0_0_34957564_8551.cpp:20:10: error: 'i' was not declared in this scope
for(;i>=0;i--){
^
0_0_34957564_8551.cpp:21:9: error: 'temp2' was not declared in this scope
temp2 = des[i] + temp1 * 10000;
^
0_0_34957564_8551.cpp: In function 'void CatalanNumber(int, int*)':
0_0_34957564_8551.cpp:29:14: error: two or more data types in declaration of 'i'
auto int i;
^
0_0_34957564_8551.cpp:30:9: error: 'i' was not declared in this scope
for(i=n+2;i<=2*n;i++) Multiple(i,des);
^
0_0_34957564_8551.cpp:31:9: error: 'i' was not declared in this scope
for(i=1;i<=n;i++) Devision(i,des);
^
0_0_34957564_8551.cpp: In function 'int main()':
0_0_34957564_8551.cpp:36:14: error: two or more data types in declaration of 'i'
auto int i,n;
^
0_0_34957564_8551.cpp:36:16: error: two or more data types in declaration of 'n'
auto int i,n;
^
0_0_34957564_8551.cpp:38:23: error: 'n' was not declared in this scope
while(scanf("%d",&n) != EOF){
^
0_0_34957564_8551.cpp:39:13: error: 'i' was not declared in this scope
for(i=0;i<MAX;i++) des[i] = 0; des[0] = 1;
^
0_0_34957564_8551.cpp:41:13: error: 'i' was not declared in this scope
for(i=MAX-1;i>=0;i--) if(des[i] != 0) {printf("%d",des[i]);break;}
^
0_0_34957564_8551.cpp:42:13: error: 'i' was not declared in this scope
for(i--;i>=0;i--){
^
|