/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'std::__cxx11::string sub(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:31:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(!na[--lmax]&&lmax>0)  ;lmax++;
     ^~~~~
/in/foo.cc:31:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(!na[--lmax]&&lmax>0)  ;lmax++;
                                  ^~~~
/in/foo.cc: In function 'std::__cxx11::string div(std::__cxx11::string, int)':
/in/foo.cc:53:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<a.size();i++)
                 ~^~~~~~~~~
/in/foo.cc:59:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<r.size();i++)
                 ~^~~~~~~~~
/in/foo.cc: In function 'int mod(std::__cxx11::string, int)':
/in/foo.cc:66:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<a.size();i++) d=(d*10+(a[i]-'0'))%b;
                 ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 2ms 224.0 KiB
#2 Runtime Error 2ms 224.0 KiB
#3 Runtime Error 1ms 228.0 KiB
#4 Runtime Error 1ms 228.0 KiB
#5 Runtime Error 1ms 224.0 KiB
#6 Runtime Error 1ms 224.0 KiB
#7 Runtime Error 1ms 228.0 KiB
#8 Runtime Error 1ms 228.0 KiB
#9 Runtime Error 1ms 224.0 KiB
#10 Runtime Error 1ms 224.0 KiB

信息

递交者
类型
递交
题目
P1670 三角计数
语言
C++
递交时间
2021-02-08 21:13:19
评测时间
2021-02-08 21:13:19
评测机
分数
0
总耗时
19ms
峰值内存
228.0 KiB