Is this your code or where did you get it from?
I used the gcc compiler to test it and found:
Something is missing in your code.
I used the gcc compiler to test it and found:
Code:
charlie$ gcc test.c test.c: In function `main': test.c:6: error: `cout' undeclared (first use in this function) test.c:6: error: (Each undeclared identifier is reported only once test.c:6: error: for each function it appears in.) test.c:8: error: `cin' undeclared (first use in this function) test.c:15: warning: assignment makes integer from pointer without a cast test.c:21: warning: assignment makes integer from pointer without a cast test.c:27: warning: assignment makes integer from pointer without a cast test.c:33: warning: assignment makes integer from pointer without a cast test.c:44:2: warning: no newline at end of file
Comment