0_0_20237945_9143.cpp: In function 'int check1(int, int, int)':
0_0_20237945_9143.cpp:7:9: error: declaration of 'int a [4]' shadows a parameter
int a[4],b[4];
^
0_0_20237945_9143.cpp:12:9: error: invalid operands of types 'int [4]' and 'int' to binary 'operator%'
b[i]=a%10;
^
0_0_20237945_9143.cpp:13:3: error: invalid operands of types 'int [4]' and 'int' to binary 'operator/'
a/=10;
^
0_0_20237945_9143.cpp:13:3: error: in evaluation of 'operator/=(int [4], int)'
0_0_20237945_9143.cpp: At global scope:
0_0_20237945_9143.cpp:28:34: error: two or more data types in declaration of 'n3'
int check2(int n1,int n2,int int n3)
^
0_0_20237945_9143.cpp: In function 'int check2(...)':
0_0_20237945_9143.cpp:31:11: error: expected initializer before 'b'
int a[4] b[4];
^
0_0_20237945_9143.cpp:34:3: error: 'a' was not declared in this scope
a[i]=n1%10;
^
0_0_20237945_9143.cpp:34:8: error: 'n1' was not declared in this scope
a[i]=n1%10;
^
0_0_20237945_9143.cpp:36:3: error: 'b' was not declared in this scope
b[i]=n2%10;
^
0_0_20237945_9143.cpp:36:8: error: 'n2' was not declared in this scope
b[i]=n2%10;
^
0_0_20237945_9143.cpp:42:8: error: 'n3' was not declared in this scope
if(k==n3)
^
|