记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
  scanf("%s",&s);
          ^
/in/foo.c:8:16: error: 'n' undeclared (first use in this function)
  for(int i=0;i<n;i++)
                ^
/in/foo.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:9:7: error: subscripted value is neither array nor pointer nor vector
  {if(s[i]='v'&&
       ^
/in/foo.c:10:4: error: subscripted value is neither array nor pointer nor vector
   s[i+1]='y'&&
    ^
/in/foo.c:11:4: error: subscripted value is neither array nor pointer nor vector
   s[i+2]='o'&&
    ^
/in/foo.c:12:4: error: subscripted value is neither array nor pointer nor vector
   s[i+3]='u'&&
    ^
/in/foo.c:13:4: error: subscripted value is neither array nor pointer nor vector
   s[i+4]='5'&&
    ^
/in/foo.c:14:4: error: subscripted value is neither array nor pointer nor vector
   s[i+5]='0'&&
    ^
/in/foo.c:15:4: error: subscripted value is neither array nor pointer nor vector
   s[i+6]='f'&&
    ^
/in/foo.c:16:4: error: subscripted value is neither array nor pointer nor vector
   s[i+7]='o'&&
    ^
/in/foo.c:17:4: error: subscripted value is neither array nor pointer nor vector
   s[i+8]='r'&&
    ^
/in/foo.c:18:4: error: subscripted value is neither array nor pointer nor vector
   s[i+9]='K'&&
    ^
/in/foo.c:19:4: error: subscripted value is neither array nor pointer nor vector
   s[i+10]='F'&&
    ^
/in/foo.c:20:4: error: subscripted value is neither array nor pointer nor vector
   s[i+11]='C'&&
    ^
/in/foo.c:21:4: error: subscripted value is neither array nor pointer nor vector
   s[i+12]='c'&&
    ^
/in/foo.c:22:4: error: subscripted value is neither array nor pointer nor vector
   s[i+13]='r'&&
    ^
/in/foo.c:23:4: error: subscripted value is neither array nor pointer nor vector
   s[i+14]='a'&&
    ^
/in/foo.c:24:4: error: subscripted value is neither array nor pointer nor vector
   s[i+15]='z'&&
    ^
/in/foo.c:25:4: error: subscripted value is neither array nor pointer nor vector
   s[i+16]='y'&&
    ^
/in/foo.c:26:4: error: subscripted value is neither array nor pointer nor vector
   s[i+17]='T'&&
    ^
/in/foo.c:27:4: error: subscripted value is neither array nor pointer nor vector
   s[i+18]='h'&&
    ^
/in/foo.c:28:4: error: subscripted value is neither array nor pointer nor vector
   s[i+19]='u'&&
    ^
/in/foo.c:29:4: error: subscripted value is neither array nor pointer nor vector
   s[i+20]='r'&&
    ^
/in/foo.c:30:4: error: subscripted value is neither array nor pointer nor vector
   s[i+21]='s'&&
    ^
/in/foo.c:31:4: error: subscripted value is neither array nor pointer nor vector
   s[i+22]='d'&&
    ^
/in/foo.c:32:4: error: subscripted value is neither array nor pointer nor vector
   s[i+23]='a'&&
    ^
/in/foo.c:33:6: error: subscripted value is neither array nor pointer nor vector
     s[i+24]='y')
      ^
/in/foo.c:6:10: warning: unused variable 'a' [-Wunused-variable]
     char a[300];
          ^

信息

递交者
类型
自测
题目
P1489 C. 小季的密文
语言
C
递交时间
2023-09-09 19:52:40
评测时间
2023-09-09 19:52:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes