fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. enum A;
  5. enum A;
  6.  
  7. int main() {
  8. // your code goes here
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:6: error: use of enum ‘A’ without previous declaration
 enum A;
      ^
prog.cpp:5:6: error: use of enum ‘A’ without previous declaration
 enum A;
      ^
stdout
Standard output is empty