/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:15: error: expected declaration specifiers or '...' before string constant
   11 |         scanf("%s",tigan);
      |               ^~~~
/in/foo.c:11:20: error: expected declaration specifiers or '...' before 'tigan'
   11 |         scanf("%s",tigan);
      |                    ^~~~~
/in/foo.c:13:16: error: variable-sized object may not be initialized
   13 |         struct xx xxset[xxs]={};
      |                ^~
/in/foo.c:14:13: error: 'i' undeclared (first use in this function)
   14 |         for(i=1;i<=xxs;i++){
      |             ^
/in/foo.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:13:19: warning: variable 'xxset' set but not used [-Wunused-but-set-variable]
   13 |         struct xx xxset[xxs]={};
      |                   ^~~~~
/in/foo.c:5:10: warning: unused variable 'tigan' [-Wunused-variable]
    5 |     char tigan[]={};
      |          ^~~~~

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C
递交时间
2025-10-07 11:50:45
评测时间
2025-10-07 11:50:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes