/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'void DP(int)':
foo.cc:28:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < tree[u].size(); ++i) {
                     ~~^~~~~~~~~~~~~~~~
foo.cc: In function 'void init()':
foo.cc:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d", &n, &m); //n为共有n门课程,需要选择m门课程
     ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:17:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d %d",&y,&f[i][1]);
         ~~~~~^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 1,10d0 < 1 < 3 < 7 < 2 < 5 < 8 2ms 384.0 KiB
#2 Wrong Answer 1,50d0 < 1 < 2 < 3 < 7 < 9 < 4 2ms 356.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Aborted 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1180 选课
语言
C++
递交时间
2021-07-13 09:45:37
评测时间
2021-07-13 09:45:37
评测机
分数
0
总耗时
10ms
峰值内存
384.0 KiB