Main.cc: In function 'int step(int, int)':
Main.cc:17:14: error: 'abs' was not declared in this scope
17 | result=max(abs(a),abs(b));
| ^~~
Main.cc:21:16: error: 'abs' was not declared in this scope
21 | result=2*min(abs(a),abs(b))+max(abs(a),abs(b));
| ^~~
Main.cc:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
23 | }
| ^
Main.cc: In function 'int main()':
Main.cc:28:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d%d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~