Runtime Error

foo.cc: In function 'int main()':
foo.cc:18:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   18 |        if(ls>3)
      |        ^~
foo.cc:20:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   20 |           a[x[i]]+=ls;
      |           ^
foo.cc:7:18: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
    7 |    int n,x1,ls,i,m,score=0;
      |                  ^
foo.cc:15:13: warning: 'ls' may be used uninitialized in this function [-Wmaybe-uninitialized]
   15 |           ls++;
      |           ~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 384.0 KiB

信息

递交者
类型
自测
题目
P1064 分数计数
语言
C++
递交时间
2022-05-09 16:58:43
评测时间
2022-05-09 16:58:43
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB