/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int query(int, int, int, int, int)':
/in/foo.cc:41:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int x=0;x<pi.size();x++) si+=num[lc[pi[x]]];
                ~^~~~~~~~~~
/in/foo.cc:42:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int x=0;x<pj.size();x++) sj+=num[lc[pj[x]]];
                ~^~~~~~~~~~
/in/foo.cc:46:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int x=0;x<pi.size();x++) pi[x]=lc[pi[x]];
                   ~^~~~~~~~~~
/in/foo.cc:47:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int x=0;x<pj.size();x++) pj[x]=lc[pj[x]];
                   ~^~~~~~~~~~
/in/foo.cc:52:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int x=0;x<pi.size();x++) pi[x]=rc[pi[x]];
                   ~^~~~~~~~~~
/in/foo.cc:53:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int x=0;x<pj.size();x++) pj[x]=rc[pj[x]];
                   ~^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:86:12: warning: unused variable 'k' [-Wunused-variable]
    int i,j,k,t;
            ^
# 状态 耗时 内存占用
#1 Accepted 20ms 23.293 MiB
#2 Accepted 20ms 23.281 MiB
#3 Accepted 24ms 23.383 MiB
#4 Accepted 24ms 23.379 MiB
#5 Accepted 74ms 23.398 MiB
#6 Time Exceeded ≥1003ms ≥23.398 MiB
#7 Runtime Error 74ms 23.316 MiB
#8 Runtime Error 74ms 23.352 MiB
#9 Wrong Answer 75ms 23.336 MiB
#10 Runtime Error 74ms 23.344 MiB

信息

递交者
类型
递交
题目
P2580 动态RKQ问题[1]
语言
C++
递交时间
2023-03-09 14:42:26
评测时间
2023-03-09 14:42:26
评测机
分数
50
总耗时
1466ms
峰值内存
23.398 MiB