/ 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 640.0 KiB
#2 Accepted 8ms 640.0 KiB
#3 Accepted 4ms 636.0 KiB
#4 Accepted 5ms 636.0 KiB
#5 Accepted 4ms 764.0 KiB
#6 Accepted 6ms 768.0 KiB
#7 Accepted 8ms 764.0 KiB
#8 Accepted 5ms 640.0 KiB
#9 Accepted 7ms 764.0 KiB
#10 Accepted 7ms 636.0 KiB

信息

递交者
类型
递交
题目
P1498 排座椅
语言
C++
递交时间
2022-04-18 19:22:12
评测时间
2022-04-18 20:00:05
评测机
分数
100
总耗时
64ms
峰值内存
768.0 KiB