Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
why doesn't this compile:
enum E { a, b} typedef struct { int i; E e; } S; int main(){return 0;}
I get different errors on different system.
e
You need a semicolon after the enum.
enum
enum E { a, b};
There is no semicolon after the enum.
no semi colon at the end of enum
The enum needs an ; after its }
;
}
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
e
.