0_0_24361974_5150.cpp: In function 'void fib_judge(int)':
0_0_24361974_5150.cpp:4:28: error: return-statement with a value, in function returning 'void' [-fpermissive]
if((num+3)%2==0)return true;
^
0_0_24361974_5150.cpp:5:17: error: return-statement with a value, in function returning 'void' [-fpermissive]
else return false;
^
0_0_24361974_5150.cpp: In function 'int main()':
0_0_24361974_5150.cpp:11:23: error: could not convert 'fib_judge(n)' from 'void' to 'bool'
if(fib_judge(n)) cout<<"Second win"<<endl;
^
|