/ Vijos /

记录详情

Accepted

foo.cc: In function 'int sread(int&, std::__cxx11::string)':
foo.cc:15:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while(c[x]<'0' || c[x]>'9'&&x<c.size()) {
                                 ~^~~~~~~~~
foo.cc:15:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     while(c[x]<'0' || c[x]>'9'&&x<c.size()) {
foo.cc:14:9: warning: unused variable 'len' [-Wunused-variable]
     int len=c.size();
         ^~~
foo.cc: In function 'int geto()':
foo.cc:31:9: warning: unused variable 'len' [-Wunused-variable]
     int len=o.size();
         ^~~
foo.cc: In function 'int main()':
foo.cc:80:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&t);
     ~~~~~^~~~~~~~~
foo.cc:83:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d ",&l); getline(cin,o);
         ~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 408.0 KiB
#2 Accepted 2ms 436.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 416.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 396.0 KiB

信息

递交者
类型
递交
题目
P2029 时间复杂度
语言
C++
递交时间
2021-01-28 11:21:10
评测时间
2021-01-28 11:21:10
评测机
分数
100
总耗时
27ms
峰值内存
436.0 KiB