记录详情

Compile Error

/in/foo.cc:2:2: error: 'cin' does not name a type
  cin >> n;
  ^~~
/in/foo.cc:4:2: error: expected unqualified-id before 'for'
  for (int i = 0; i < n; i++)
  ^~~
/in/foo.cc:4:18: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                  ^
/in/foo.cc:4:25: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                         ^
/in/foo.cc:10:2: error: expected unqualified-id before 'for'
  for (int i = 0; i < n; i++)
  ^~~
/in/foo.cc:10:18: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                  ^
/in/foo.cc:10:25: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                         ^
/in/foo.cc:14:2: error: expected unqualified-id before 'for'
  for (int i = 0; i < n; i++)
  ^~~
/in/foo.cc:14:18: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                  ^
/in/foo.cc:14:25: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                         ^
/in/foo.cc:26:2: error: expected unqualified-id before 'for'
  for (int i = 0; i < n; i++)
  ^~~
/in/foo.cc:26:18: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                  ^
/in/foo.cc:26:25: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                         ^
/in/foo.cc:41:2: error: expected unqualified-id before 'for'
  for (int i = 0; i < n; i++)
  ^~~
/in/foo.cc:41:18: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                  ^
/in/foo.cc:41:25: error: 'i' does not name a type
  for (int i = 0; i < n; i++)
                         ^
/in/foo.cc:76:2: error: 'cout' does not name a type
  cout << result << endl;
  ^~~~

信息

递交者
类型
递交
题目
4 排序中的交换次数
比赛
小兰赛 2018/12/2
语言
C++
递交时间
2018-12-02 11:57:12
评测时间
2018-12-02 11:57:12
评测机
分数
0
总耗时
11ms
峰值内存
2.789 MiB