/ XMU_ACM /

记录详情

Runtime Error

foo.cc: In function 'int query(int, int, int)':
foo.cc:48:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0;i < pre.size();++i) {
                    ~~^~~~~~~~~~~~
foo.cc:55:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0;i < pre.size();++i) {
                    ~~^~~~~~~~~~~~
foo.cc:44:9: warning: unused variable 'cnt' [-Wunused-variable]
     int cnt = 0,pos = 0;
         ^~~
foo.cc:44:17: warning: unused variable 'pos' [-Wunused-variable]
     int cnt = 0,pos = 0;
                 ^~~
foo.cc: In function 'int main()':
foo.cc:84:24: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
     printf("%lld\n",ans);
                        ^
# 状态 耗时 内存占用
#1 Accepted 4ms 2.672 MiB
#2 Accepted 4ms 3.074 MiB
#3 Accepted 4ms 3.098 MiB
#4 Accepted 4ms 3.0 MiB
#5 Accepted 4ms 3.0 MiB
#6 Accepted 4ms 3.0 MiB
#7 Runtime Error Segmentation fault 12ms 5.906 MiB

信息

递交者
类型
递交
题目
P1074 选择
语言
C++
递交时间
2021-01-19 18:32:21
评测时间
2021-01-19 18:32:21
评测机
分数
90
总耗时
39ms
峰值内存
5.906 MiB