0_0_14733811_27929.cpp: In function 'void Choice(int, int, int*)':
0_0_14733811_27929.cpp:4:22: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(m<n) return a[m-1];
^
0_0_14733811_27929.cpp:5:22: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(m=n) return a[m-1];
^
0_0_14733811_27929.cpp:6:24: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(m>n) return a[m%n-1];
^
0_0_14733811_27929.cpp: In function 'int main()':
0_0_14733811_27929.cpp:16:7: error: void value not ignored as it ought to be
r[i]=Choice(n,m,a);
^
|