0_0_18824684_8987.cpp: In function 'void f(int, int)':
0_0_18824684_8987.cpp:7:2: error: 'a' was not declared in this scope
a[i]=a[i]+10;
^
0_0_18824684_8987.cpp: In function 'void d(int)':
0_0_18824684_8987.cpp:12:15: error: return-statement with a value, in function returning 'void' [-fpermissive]
return (x+1)/2;
^
0_0_18824684_8987.cpp: In function 'int main()':
0_0_18824684_8987.cpp:30:14: error: third operand to the conditional operator is of type 'void', but the second operand is neither a throw-expression nor of type 'void'
x=x%2==0?x/2:d(x);
^
0_0_18824684_8987.cpp:31:14: error: third operand to the conditional operator is of type 'void', but the second operand is neither a throw-expression nor of type 'void'
y=y%2==0?y/2:d(y);
^
|