/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void read(int&)':
/in/foo.cc:16:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while (c=getchar(),c<'0'||c>'9') if (c=='-') d=1;f=f*10+c-48;
     ^~~~~
/in/foo.cc:16:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while (c=getchar(),c<'0'||c>'9') if (c=='-') d=1;f=f*10+c-48;
                                                      ^
/in/foo.cc: In function 'void work()':
/in/foo.cc:6:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define r(i,a,b) for (int i=a;i<=b;i++)
                                 
/in/foo.cc:50:7:
     r(i,0,strlen(s)-1)
       ~~~~~~~~~~~~~~~           
/in/foo.cc:50:5: note: in expansion of macro 'r'
     r(i,0,strlen(s)-1)
     ^
# 状态 耗时 内存占用
#1 Accepted 2ms 372.0 KiB
#2 Accepted 4ms 348.0 KiB
#3 Accepted 1ms 344.0 KiB
#4 Accepted 3ms 372.0 KiB
#5 Accepted 3ms 348.0 KiB

信息

递交者
类型
递交
题目
P1129 产生数
语言
C++
递交时间
2018-04-21 16:22:22
评测时间
2018-04-21 16:22:22
评测机
分数
50
总耗时
15ms
峰值内存
372.0 KiB