fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int y1;
  4. int main()
  5. {
  6. }
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3: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/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33,
                 from prog.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
 __MATHCALL (y1,, (_Mdouble_));
 ^
stdout
Standard output is empty