记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:15: error: expected ')' before ';' token
  while(int i=0;i<s.length();i++)
               ^
/in/foo.cc:10:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(int i=0;i<s.length();i++)
  ^~~~~
/in/foo.cc:10:16: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while(int i=0;i<s.length();i++)
                ^
/in/foo.cc:10:12: warning: unused variable 'i' [-Wunused-variable]
  while(int i=0;i<s.length();i++)
            ^
/in/foo.cc:10:16: error: 'i' was not declared in this scope
  while(int i=0;i<s.length();i++)
                ^

信息

递交者
类型
递交
题目
P1103 4-3 爱情故事
语言
C++
递交时间
2021-06-06 14:32:55
评测时间
2021-06-06 14:32:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes