记录详情

Compile Error

/in/foo.cc: In function 'int max(int*, int)':
/in/foo.cc:13:26: error: expected statement at end of input
     for(int i=1; i<n; i++)
                          ^
/in/foo.cc:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=1; i<n; i++)
     ^~~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
/in/foo.cc:11:9: warning: unused variable 'maxValue' [-Wunused-variable]
     int maxValue = arr[0];
         ^~~~~~~~
/in/foo.cc:13:26: error: expected '}' at end of input
     for(int i=1; i<n; i++)
                          ^
/in/foo.cc:13:26: warning: no return statement in function returning non-void [-Wreturn-type]

信息

递交者
类型
递交
题目
找最大值
语言
C++
递交时间
2018-12-10 10:10:17
评测时间
2018-12-10 10:10:17
评测机
分数
0
总耗时
252ms
峰值内存
29.312 MiB