记录详情

Compile Error

foo.cc: In function 'int cal(int, int)':
foo.cc:4:10: error: expected '(' before ';' token
    4 |     __asm;
      |          ^
      |          (
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)提供评测服务

信息

递交者
类型
递交
题目
P1187 汇编你好
语言
C++
递交时间
2022-01-03 12:49:02
评测时间
2022-01-03 12:49:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes