/ Vijos /

记录详情

Compile Error

foo.cc:5:12: error: stray '\357' in program
    5 | int n,t,m,x,ans;
      |            ^
foo.cc:5:13: error: stray '\274' in program
    5 | int n,t,m,x,ans;
      |             ^
foo.cc:5:14: error: stray '\214' in program
    5 | int n,t,m,x,ans;
      |              ^
foo.cc:5:15: error: expected initializer before 'ans'
    5 | int n,t,m,x,ans;
      |               ^~~
foo.cc: In function 'int main()':
foo.cc:24:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |                     ans--;
      |                     ^~~
      |                     abs
foo.cc:31:18: error: 'x' was not declared in this scope
   31 |             cin>>x;
      |                  ^
foo.cc:37:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   37 |                 ans++;
      |                 ^~~
      |                 abs
foo.cc:39:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
   39 |         printf("%d\n",ans);
      |                       ^~~
      |                       abs
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2011 海港
语言
C++
递交时间
2021-12-18 16:47:52
评测时间
2021-12-18 16:47:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes