/ 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");
 ~~~~~~^~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 3ms 624.0 KiB
#2 Accepted 2ms 624.0 KiB
#3 Accepted 2ms 624.0 KiB
#4 Accepted 3ms 624.0 KiB
#5 Accepted 3ms 624.0 KiB
#6 Accepted 3ms 632.0 KiB
#7 Accepted 3ms 624.0 KiB
#8 Accepted 3ms 620.0 KiB
#9 Accepted 3ms 624.0 KiB
#10 Accepted 3ms 620.0 KiB

信息

递交者
类型
递交
题目
P1498 排座椅
语言
C++
递交时间
2021-03-27 21:30:54
评测时间
2021-03-27 21:30:54
评测机
分数
100
总耗时
32ms
峰值内存
632.0 KiB