0_0_35248462_9624.cpp:2:11: error: '::main' must return 'int' void main() ^ 0_0_35248462_9624.cpp: In function 'int main()': 0_0_35248462_9624.cpp:19:13: error: 'abs' was not declared in this scope if(abs(c)>abs(max)) ^