/ Vijos /

记录详情

Compile Error

foo.c:15:26: error: expected ';', ',' or ')' before '&' token
 Status InitStack(SqStack &S)
                          ^
foo.c:25:20: error: expected ';', ',' or ')' before '&' token
 Status POP(SqStack &S,int &e)
                    ^
foo.c:34:21: error: expected ';', ',' or ')' before '&' token
 Status Push(SqStack &S,int e)
                     ^
foo.c: In function 'main':
foo.c:53:2: warning: implicit declaration of function 'InitStack' [-Wimplicit-function-declaration]
  InitStack(st);
  ^~~~~~~~~
foo.c:61:4: warning: implicit declaration of function 'Push' [-Wimplicit-function-declaration]
    Push(st,j);
    ^~~~
foo.c:63:3: warning: implicit declaration of function 'POP' [-Wimplicit-function-declaration]
   POP(st,t);
   ^~~
foo.c:54:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c:58:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1062 迎春舞会之交谊舞
语言
C
递交时间
2021-11-07 22:05:57
评测时间
2021-11-07 22:05:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes