/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int isExist(int, int)':
foo.cc:11:46: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   11 |   if(p!=NULL&&p-&str[bgn]==0&&strlen(word[i])<=end-bgn+1){
      |                               ~~~~~~~~~~~~~~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   18 |  scanf("%d%d",&p,&cut);
      |  ~~~~~^~~~~~~~~~~~~~~~
foo.cc:20:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   20 |   scanf("%s",tmp);
      |   ~~~~~^~~~~~~~~~
foo.cc:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   23 |  scanf("%d",&s);
      |  ~~~~~^~~~~~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |   scanf("%s",word[i]);
      |   ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Wrong Answer Read 1935766382, expect 13. 1ms 256.0 KiB
#3 Wrong Answer Read 1633772065, expect 193. 1ms 384.0 KiB
#4 Wrong Answer Read 1634956253, expect 125. 5ms 512.0 KiB
#5 Wrong Answer Read 1634956194, expect 65. 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1118 统计单词个数
语言
C++
递交时间
2022-05-13 18:00:31
评测时间
2022-05-13 18:00:52
评测机
分数
20
总耗时
13ms
峰值内存
512.0 KiB