记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:13:4: error: 'i' was not declared in this scope
   13 |    i++;
      |    ^
foo.cc: At global scope:
foo.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
foo.cc:22:1: error: expected unqualified-id before 'for'
   22 | for( int i=o;i<n;i++){
      | ^~~
foo.cc:22:14: error: 'i' does not name a type
   22 | for( int i=o;i<n;i++){
      |              ^
foo.cc:22:18: error: 'i' does not name a type
   22 | for( int i=o;i<n;i++){
      |                  ^
foo.cc:28:2: error: expected unqualified-id before 'return'
   28 |  return 0;
      |  ^~~~~~
foo.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
3-2 约瑟夫问题
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 21:59:36
评测时间
2022-08-07 21:59:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes