/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:15:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<n.size();i++)
              ~^~~~~~~~~
foo.cc:19:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while((a[l]=getchar())!='\n') l++;l--; 
  ^~~~~
foo.cc:19:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  while((a[l]=getchar())!='\n') l++;l--; 
                                    ^
foo.cc:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%c",&a[0]);
  ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 420.0 KiB
#2 Accepted 1ms 408.0 KiB
#3 Accepted 1ms 416.0 KiB
#4 Accepted 1ms 440.0 KiB
#5 Accepted 2ms 428.0 KiB
#6 Accepted 2ms 552.0 KiB
#7 Accepted 3ms 548.0 KiB
#8 Accepted 15ms 2.301 MiB
#9 Accepted 15ms 2.316 MiB
#10 Accepted 15ms 2.336 MiB

信息

递交者
类型
递交
题目
P1761 统计单词数
语言
C++
递交时间
2021-11-04 18:41:28
评测时间
2021-11-04 18:41:28
评测机
分数
100
总耗时
61ms
峰值内存
2.336 MiB