记录详情

Compile Error

foo.cc: In function 'int cal(int, int)':
foo.cc:5:5: error: expected '(' before '{' token
     {
     ^
foo.cc:6:9: error: 'mov' was not declared in this scope
         mov eax,a;
         ^~~
foo.cc:7:13: error: expected ';' before 'ebx'
         mov ebx,b;
             ^~~
foo.cc:8:9: error: 'add' was not declared in this scope
         add eax,ebx;
         ^~~
foo.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
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]
     scanf("%d%d",&a,&b);
     ~~~~~^~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1187 汇编你好
语言
C++
递交时间
2021-04-03 19:11:58
评测时间
2021-04-03 19:11:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes