#include <stdio.h> int main() { int i; for (i = 0; i < 10; i++) { printf ("Hello\n"); printf ("World\n"); } return 0; }
Standard input is empty
prog.cpp:1:10: error: #include expects "FILENAME" or <FILENAME> #include <stdio.h> ^ prog.cpp: In function ‘int main()’: prog.cpp:7:18: error: ‘printf’ was not declared in this scope printf ("Hello\n"); ^
Standard output is empty