记录详情

Compile Error

/in/foo.cc: In function 'void Input()':
/in/foo.cc:26:9: error: 'n' was not declared in this scope
  cin >> n;
         ^
/in/foo.cc:29:8: error: 'a' was not declared in this scope
   cin>>a[i];
        ^
/in/foo.cc: In function 'void Output()':
/in/foo.cc:36:22: error: 'n' was not declared in this scope
  for (int i = 0; i < n; i++)
                      ^
/in/foo.cc:38:11: error: 'a' was not declared in this scope
   cout << a[i] << " ";
           ^
/in/foo.cc: In function 'void MoveLeft()':
/in/foo.cc:47:15: error: 'n' was not declared in this scope
  for (int i = n - 1; i > k - 1; i--)
               ^
/in/foo.cc:49:10: error: 'a' was not declared in this scope
   temp = a[n-1];
          ^

信息

递交者
类型
递交
题目
A7-6 数组的左移函数
语言
C++
递交时间
2019-03-04 21:05:18
评测时间
2019-03-04 21:05:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes