记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:11: error: expected ';' before '<' token
  for(int i<0;i<n;i++){
           ^
/in/foo.cc:6:11: error: expected primary-expression before '<' token
/in/foo.cc:6:15: warning: for increment expression has no effect [-Wunused-value]
  for(int i<0;i<n;i++){
              ~^~
/in/foo.cc:6:17: error: expected ')' before ';' token
  for(int i<0;i<n;i++){
                 ^
/in/foo.cc:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i<0;i<n;i++){
  ^~~
/in/foo.cc:6:18: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i<0;i<n;i++){
                  ^
/in/foo.cc:6:18: error: 'i' was not declared in this scope
/in/foo.cc:12:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(i=k-1){
           ^
/in/foo.cc:18:1: error: expected '}' at end of input
 }
 ^
/in/foo.cc:18:1: error: expected '}' at end of input

信息

递交者
类型
递交
比赛
2024程序设计与竞赛作业赛第三场(七十二变)
语言
C++
递交时间
2024-10-20 18:20:06
评测时间
2024-10-20 18:20:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes