HTML & JS
#include <iostream>
using namespace std;

int main() {
	int a=2;
	char a='A';
	return 0;
}

Generated URL:

Compile Errors :

prog.cpp: In function 'int main()':
prog.cpp:6:7: error: conflicting declaration 'char a'
  char a='A';
       ^
prog.cpp:5:6: note: previous declaration as 'int a'
  int a=2;
      ^

Output:

No Output
Report Bug

Free Online Course By GeeksforGeeks