Compile Error

/in/foo.cc:6:14: warning: missing terminating ' character
  a[0] = a[n1]'-1;
              ^
/in/foo.cc:6:14: error: missing terminating ' character
  a[0] = a[n1]'-1;
              ^~~~
/in/foo.cc: In function 'void right()':
/in/foo.cc:7:2: error: expected ';' before 'for'
  for(int i = 1; i <= n1; i++){
  ^~~
/in/foo.cc:7:17: error: 'i' was not declared in this scope
  for(int i = 1; i <= n1; i++){
                 ^

信息

递交者
类型
自测
题目
P1049 A7-7 数组的右移函数
语言
C++
递交时间
2024-05-31 23:59:02
评测时间
2024-05-31 23:59:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes