0_0_16838185_4720.cpp: In function 'void min(int, int)':
0_0_16838185_4720.cpp:7:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(a>b) return b;
^
0_0_16838185_4720.cpp:8:17: error: return-statement with a value, in function returning 'void' [-fpermissive]
else return a;
^
0_0_16838185_4720.cpp: In function 'int main()':
0_0_16838185_4720.cpp:35:9: error: 'ans' was not declared in this scope
ans=inf;
^
|