记录详情

Compile Error

/in/foo.cc: In function 'void Output(SeqList*)':
/in/foo.cc:23:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=0; i<=pL->n; i++)
  ^~~
/in/foo.cc:26:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   printf("%d",pL->data[i]);
   ^~~~~~
/in/foo.cc:26:24: error: 'i' was not declared in this scope
   printf("%d",pL->data[i]);
                        ^
/in/foo.cc: In function 'void Input(SeqList*)':
/in/foo.cc:33:16: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
  scanf("%ld",&a);
                ^

信息

递交者
类型
递交
题目
1-1 数字循环左移
语言
C++
递交时间
2018-12-29 09:47:05
评测时间
2018-12-29 09:47:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes