#include <iostream> using namespace std; int main() { int x = 0; int x = 0; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:6:6: error: redeclaration of ‘int x’
int x = 0;
^
prog.cpp:5:6: note: ‘int x’ previously declared here
int x = 0;
^
Standard output is empty