foo.cc: In function 'int cal(int, int)':
foo.cc:5:5: error: expected '(' before '{' token
5 | {
| ^
| (
foo.cc:6:9: error: 'mov' was not declared in this scope
6 | mov eax,a;
| ^~~
foo.cc:7:12: error: expected ';' before 'ebx'
7 | mov ebx,b;
| ^~~~
| ;
foo.cc:8:9: error: 'add' was not declared in this scope
8 | add eax,ebx;
| ^~~
foo.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
10 | }
| ^
foo.cc: In function 'int main()':
foo.cc:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d%d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务