ee.c:8:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main()
^
ee.c: In function ‘compare’:
ee.c:51:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < M; i++)
^
ee.c:51:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
ee.c:53:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (int y = cnt; cnt < y + 2; cnt++)
^
ee.c: In function ‘main’:
ee.c:14:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M); // N : stage M : eyfa size
^
ee.c:19:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(eyfa, M + 2, stdin); // why +2?
^
ee.c:23:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(eyfa2, M + 2, stdin); // why +2?
^
ee.c:27:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(eeyfa, sizeof(eeyfa), stdin);
^
ee.c:31:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(eeyfa2, sizeof(eeyfa2), stdin);
^