/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:50:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   50 | for(i=1;i<=k;i++) printf("%d ",an1[i]);printf("\n");
      | ^~~
foo.cc:50:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   50 | for(i=1;i<=k;i++) printf("%d ",an1[i]);printf("\n");
      |                                        ^~~~~~
foo.cc:51:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   51 | for(i=1;i<=l;i++) printf("%d ",an2[i]);printf("\n");
      | ^~~
foo.cc:51:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   51 | for(i=1;i<=l;i++) printf("%d ",an2[i]);printf("\n");
      |                                        ^~~~~~
foo.cc:24:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 | scanf("%d%d%d%d%d",&m,&n,&k,&l,&d);
      | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:27:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   27 | scanf("%d%d%d%d",&x,&y,&p,&q);
      | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:52:7: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
   52 | system("pause");
      | ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 636.0 KiB
#2 Accepted 6ms 636.0 KiB
#3 Accepted 3ms 764.0 KiB
#4 Accepted 3ms 640.0 KiB
#5 Accepted 4ms 764.0 KiB
#6 Accepted 5ms 768.0 KiB
#7 Accepted 4ms 660.0 KiB
#8 Accepted 5ms 636.0 KiB
#9 Accepted 5ms 636.0 KiB
#10 Accepted 4ms 896.0 KiB

信息

递交者
类型
递交
题目
P1498 排座椅
语言
C++
递交时间
2022-07-19 16:59:36
评测时间
2022-07-19 16:59:36
评测机
分数
100
总耗时
47ms
峰值内存
896.0 KiB