fork download
  1. #include <cmath>
  2.  
  3. int round(double number);
  4.  
  5. int main()
  6. {
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:24: error: ambiguating new declaration of 'int round(double)'
 int round(double number);
                        ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.9/bits/c++config.h:430,
                 from /usr/include/c++/4.9/cmath:41,
                 from prog.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:309:1: note: old declaration 'double round(double)'
 __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
 ^
stdout
Standard output is empty