记录详情

Accepted

/in/foo.cc: In function 'void Read()':
/in/foo.cc:9:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
     scanf("%d",&m);
                  ^
/in/foo.cc:11:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0;i < str.length();i++)
                   ~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:18:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int j = 0;j < i;j++)
         ^~~
/in/foo.cc:23:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
             tot += sum;
             ^~~
/in/foo.cc:26:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0;i < str.length();i++)
                   ~~^~~~~~~~~~~~~~
/in/foo.cc:31:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if(tot >= m || sum == 0 && tot < m-1){
                    ~~~~~~~~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 348.0 KiB
#2 Accepted 3ms 340.0 KiB
#3 Accepted 3ms 256.0 KiB
#4 Accepted 2ms 380.0 KiB
#5 Accepted 3ms 336.0 KiB
#6 Accepted 3ms 356.0 KiB
#7 Accepted 3ms 372.0 KiB
#8 Accepted 2ms 352.0 KiB

信息

递交者
类型
递交
题目
数羊
语言
C++
递交时间
2018-04-30 08:56:24
评测时间
2018-04-30 08:56:24
评测机
分数
100
总耗时
27ms
峰值内存
380.0 KiB