记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:12: error: expected initializer before '+' token
     int n,n+1;
            ^
/in/foo.cc:7:14: error: lvalue required as decrement operand
     while(n+1--){scanf("%n+1",&n);if(n>n+1)n=n+1;}
              ^~
/in/foo.cc:8:20: warning: format '%n' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
     printf("%n+!",n);
                    ^
/in/foo.cc:10:1: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
 }
 ^

信息

递交者
类型
递交
题目
计算平均分
比赛
第2学段末测验1
语言
C++
递交时间
2019-01-17 10:45:40
评测时间
2019-01-17 10:45:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes