fork download
  1. #include <math.h>
  2. int y1;
  3. int y0;
  4.  
  5. int main() {
  6. // your code goes here
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:5: error: ‘int y1’ redeclared as different kind of symbol
 int y1;
     ^~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
                 from /usr/include/c++/6/cmath:41,
                 from /usr/include/c++/6/math.h:36,
                 from prog.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
 __MATHCALL (y1,, (_Mdouble_));
 ^
prog.cpp:3:5: error: ‘int y0’ redeclared as different kind of symbol
 int y0;
     ^~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
                 from /usr/include/c++/6/cmath:41,
                 from /usr/include/c++/6/math.h:36,
                 from prog.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:250:1: note: previous declaration ‘double y0(double)’
 __MATHCALL (y0,, (_Mdouble_));
 ^
stdout
Standard output is empty