记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:17: error: 'strlen' was not declared in this scope
  int l1=strlen(a),l2=strlen(b),i,temp=0,x;
                 ^
/in/foo.cc:8:6: error: 'i' was not declared in this scope
  for(i=0;i<l1;i++)
      ^
/in/foo.cc:11:6: error: 'i' was not declared in this scope
  for(i=0;i<l2;i++)
      ^
/in/foo.cc:11:12: error: 'l2' was not declared in this scope
  for(i=0;i<l2;i++)
            ^~
/in/foo.cc:13:4: error: 'l2' was not declared in this scope
  d[l2]=0;
    ^~
/in/foo.cc:14:6: error: 'i' was not declared in this scope
  for(i=l1+1;i<50;i++)
      ^
/in/foo.cc:16:6: error: 'i' was not declared in this scope
  for(i=l2+1;i<50;i++)
      ^
/in/foo.cc:20:7: error: 'i' was not declared in this scope
   for(i=0;i<=l1;i++)
       ^
/in/foo.cc:22:4: error: 'x' was not declared in this scope
    x=c[i]+d[i]+temp;
    ^
/in/foo.cc:22:16: error: 'temp' was not declared in this scope
    x=c[i]+d[i]+temp;
                ^~~~
/in/foo.cc:27:8: error: 'i' was not declared in this scope
    for(i=l1-1;i>=0;i--)
        ^
/in/foo.cc:30:8: error: 'i' was not declared in this scope
    for(i=l1;i>=0;i--)
        ^
/in/foo.cc:35:7: error: 'i' was not declared in this scope
   for(i=0;i<=l2;i++)
       ^
/in/foo.cc:37:4: error: 'x' was not declared in this scope
    x=c[i]+d[i]+temp;
    ^
/in/foo.cc:37:16: error: 'temp' was not declared in this scope
    x=c[i]+d[i]+temp;
                ^~~~
/in/foo.cc:42:8: error: 'i' was not declared in this scope
    for(i=l2-1;i>=0;i--)
        ^
/in/foo.cc:45:8: error: 'i' was not declared in this scope
    for(i=l2;i>=0;i--)
        ^

信息

递交者
类型
递交
题目
P1187 汇编你好
比赛
2020年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2020-12-09 16:29:20
评测时间
2020-12-09 16:29:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes