记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:2: error: expected ',' or ';' before 'int'
  int i=0,yushu=0,num=0;
  ^~~
/in/foo.cc:9:6: error: 'i' was not declared in this scope
  for(i=1;i<=n;i++)
      ^
/in/foo.cc:14:4: error: 'yushu' was not declared in this scope
    yushu=tmp%10;
    ^~~~~
/in/foo.cc:16:5: error: 'num' was not declared in this scope
     num++;
     ^~~
/in/foo.cc:20:5: error: 'num' was not declared in this scope
     num++;
     ^~~
/in/foo.cc:22:8: error: 'num' was not declared in this scope
  cout<<num<<endl;
        ^~~
/in/foo.cc:7:6: warning: unused variable 'a' [-Wunused-variable]
  int a[9]={0}
      ^

信息

递交者
类型
递交
题目
P1153 记数问题
语言
C++
递交时间
2024-09-22 21:24:00
评测时间
2024-09-23 09:53:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes