记录详情

Wrong Answer

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

信息

递交者
类型
自测
题目
数羊
语言
C++
递交时间
2018-04-30 08:54:50
评测时间
2018-04-30 08:55:11
评测机
分数
0
总耗时
4ms
峰值内存
348.0 KiB