/in/foo.c:3:5: error: two or more data types in declaration specifiers
3 | int void a(int x,int i)
| ^~~~
/in/foo.c: In function 'a':
/in/foo.c:6:4: error: expected '(' before 'x'
6 | if x%i=0;
| ^
| (
/in/foo.c:6:4: warning: statement with no effect [-Wunused-value]
/in/foo.c:8:9: error: 'else' without a previous 'if'
8 | else
| ^~~~
/in/foo.c: In function 'main':
/in/foo.c:15:4: error: expected expression before 'void'
15 | n=void a(x);
| ^~~~
/in/foo.c:16:11: warning: format '%d' expects a matching 'int' argument [-Wformat=]
16 | printf("%d is not aprimer!");
| ~^
| |
| int
/in/foo.c:17:9: error: 'else' without a previous 'if'
17 | else
| ^~~~
/in/foo.c:18:26: warning: format '%d' expects a matching 'int' argument [-Wformat=]
18 | printf("%d is a primer!");
| ~^
| |
| int
/in/foo.c:13:8: warning: unused variable 'i' [-Wunused-variable]
13 | {int n,i;
| ^