#include <iostream> using namespace std; union test{ static int a; int b; }; int main() { // your code goes here return 0; }
Standard input is empty
prog.cpp:5:13: error: ‘test::a’ may not be static because it is a member of a union
static int a;
^
Standard output is empty