0_0_16748252_25191.cpp:3:11: error: '::main' must return 'int'
void main()
^
0_0_16748252_25191.cpp: In function 'int main()':
0_0_16748252_25191.cpp:7:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
if(n == 0) return;
^
0_0_16748252_25191.cpp:16:2: error: return-statement with no value, in function returning 'int' [-fpermissive]
return;
^
|