/in/foo.c: In function 'cal':
/in/foo.c:5:5: error: expected '(' before '{' token
{
^
/in/foo.c:6:9: error: unknown type name 'mov'
mov eax,a;
^~~
/in/foo.c:7:9: error: unknown type name 'mov'
mov ebx,b;
^~~
/in/foo.c:8:9: error: unknown type name 'add'
add eax,ebx;
^~~
/in/foo.c:8:13: error: redeclaration of 'eax' with no linkage
add eax,ebx;
^~~
/in/foo.c:6:13: note: previous declaration of 'eax' was here
mov eax,a;
^~~
/in/foo.c:8:17: error: redeclaration of 'ebx' with no linkage
add eax,ebx;
^~~
/in/foo.c:7:13: note: previous declaration of 'ebx' was here
mov ebx,b;
^~~
/in/foo.c:8:17: warning: unused variable 'ebx' [-Wunused-variable]
add eax,ebx;
^~~
/in/foo.c:8:13: warning: unused variable 'eax' [-Wunused-variable]
add eax,ebx;
^~~
/in/foo.c:7:17: warning: unused variable 'b' [-Wunused-variable]
mov ebx,b;
^
/in/foo.c:6:17: warning: unused variable 'a' [-Wunused-variable]
mov eax,a;
^
/in/foo.c: In function 'main':
/in/foo.c:14:13: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d%d",&a,&b);
^
/in/foo.c:14:15: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
scanf("%d%d",&a,&b);
^
/in/foo.c:15:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d\n",cal(a,b));
^
/in/foo.c: In function 'cal':
/in/foo.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^