/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:50:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 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'
 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]
 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'
 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]
 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]
 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]
 system("pause");
 ~~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 624.0 KiB
#2 Accepted 2ms 624.0 KiB
#3 Accepted 2ms 624.0 KiB
#4 Accepted 2ms 648.0 KiB
#5 Accepted 2ms 624.0 KiB
#6 Accepted 3ms 616.0 KiB
#7 Accepted 3ms 620.0 KiB
#8 Accepted 2ms 624.0 KiB
#9 Accepted 3ms 644.0 KiB
#10 Accepted 3ms 688.0 KiB

信息

递交者
类型
递交
题目
P1498 排座椅
语言
C++
递交时间
2021-08-29 20:11:18
评测时间
2021-08-29 20:11:18
评测机
分数
100
总耗时
30ms
峰值内存
688.0 KiB