fork download
  1. #include <stdio.h>
  2.  
  3. #define j i
  4.  
  5. int main(void) {
  6. int i = 0;
  7. int j = 0;
  8.  
  9. for (i = 0; i < 5; i++) {
  10. for (j = 0; j < 5; j++) {
  11. printf("%d * %d = %d\n", i, j, i * j);
  12. }
  13. }
  14. return 0;
  15. }
  16.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:3:11: error: redefinition of 'i'
 #define j i
           ^
prog.c:7:6: note: in expansion of macro 'j'
  int j = 0;
      ^
prog.c:6:6: note: previous definition of 'i' was here
  int i = 0;
      ^
stdout
Standard output is empty