fork download
  1. /* abs example */
  2. #include <stdio.h> /* printf */
  3. #include <stdlib.h> /* abs */
  4.  
  5. int main ()
  6. {
  7. long long n,m;
  8. n=fabs(1999999999999999);
  9. m=abs(-11);
  10. printf ("n=%lld\n",n);
  11. printf ("m=%lld\n",m);
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 3456KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:8:26: error: 'fabs' was not declared in this scope
   n=fabs(1999999999999999);
                          ^
stdout
Standard output is empty