Compiler Error in Solo Learn Code Playground "C" compiler
Here is a simple C program /* Numeric Data Type sizes in bytes */ #include <stdio.h> int main() { printf("\n char is %d bytes", sizeof(char)); printf("\n unsigned char is %d bytes", sizeof(unsigned char)); printf("\n int is %d bytes", sizeof(int)); printf("\n unsigned int is %d bytes", sizeof(unsigned int)); printf("\n short is %d bytes", sizeof(short)); printf("\n unsigned short is %d bytes", sizeof(unsigned short)); printf("\n long is %d bytes", sizeof(long)); printf("\n unsigned long is %d bytes", sizeof(unsigned long)); printf("\n float is %d bytes", sizeof(float)); printf("\n double is %d bytes", sizeof(double)); return 0; } This code compiles correctly, without modification on my local machine. However, when I compile it within Solo Learn's Code Playground it produces a "Compiler Error". I comment out the half of the printf's (doesn't matter which ones) the program compiles correctly. For example: #include <stdio.h> int main() { /* printf("\n char is %d bytes", sizeof(char)); */ printf("\n unsigned char is %d bytes", sizeof(unsigned char)); printf("\n int is %d bytes", sizeof(int)); /* printf("\n unsigned int is %d bytes", sizeof(unsigned int)); */ /* printf("\n short is %d bytes", sizeof(short)); */ printf("\n unsigned short is %d bytes", sizeof(unsigned short)); /* printf("\n long is %d bytes", sizeof(long)); */ printf("\n unsigned long is %d bytes", sizeof(unsigned long)); /* printf("\n float is %d bytes", sizeof(float)); */ printf("\n double is %d bytes", sizeof(double)); return 0; } Anyone have similar problems, or care to verify the bug in the Code Playground compiler?