/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:9: error: expected initializer before 'char'
    8 |         char a[26]={0},b[1000][10]={0};
      |         ^~~~
/in/foo.cc:8:23: error: expected primary-expression before ',' token
    8 |         char a[26]={0},b[1000][10]={0};
      |                       ^
/in/foo.cc:8:24: error: 'b' was not declared in this scope
    8 |         char a[26]={0},b[1000][10]={0};
      |                        ^
/in/foo.cc:9:13: error: redeclaration of 'int n'
    9 |         int n;
      |             ^
/in/foo.cc:6:13: note: 'int n' previously declared here
    6 |         int n,i,j,c[1000]={0},d[1000];
      |             ^
/in/foo.cc:10:14: error: 'a' was not declared in this scope
   10 |         cin>>a;
      |              ^
/in/foo.cc:16:14: error: 'fs' was not declared in this scope; did you mean 'ffs'?
   16 |         cin>>fs;
      |              ^~
      |              ffs
/in/foo.cc:33:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   33 |                         if(c[i]=d[j])
      |                            ~~~~^~~~~
/in/foo.cc:35:37: error: 'k' was not declared in this scope
   35 |                                 for(k=0;k<strlen(b[i]);k++)
      |                                     ^
/in/foo.cc: At global scope:
/in/foo.cc:42:9: error: expected unqualified-id before 'return'
   42 |         return 0;
      |         ^~~~~~
/in/foo.cc:43:1: error: expected declaration before '}' token
   43 | }
      | ^

信息

递交者
类型
递交
题目
P1500 笨笨的单词排序
语言
C++
递交时间
2025-07-14 21:52:50
评测时间
2025-07-14 21:52:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes