/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int dfs(int)':
/in/foo.cc:23:30: error: invalid types 'int[int]' for array subscript
     if(vis[cur]) return k[cur];
                              ^
/in/foo.cc:27:18: error: invalid types 'int[int]' for array subscript
         if (k[cur]>res-1) k[cur]=res-1;
                  ^
/in/foo.cc:27:32: error: invalid types 'int[int]' for array subscript
         if (k[cur]>res-1) k[cur]=res-1;
                                ^
/in/foo.cc:29:11: error: invalid types 'int[int]' for array subscript
  num[k[cur]][ccnt[k[cur]]++]=cur;
           ^
/in/foo.cc:29:24: error: invalid types 'int[int]' for array subscript
  num[k[cur]][ccnt[k[cur]]++]=cur;
                        ^
/in/foo.cc:30:17: error: invalid types 'int[int]' for array subscript
     return k[cur];
                 ^
/in/foo.cc:22:17: warning: unused variable 'j' [-Wunused-variable]
  register int i,j,k;
                 ^
/in/foo.cc: In function 'void run(int)':
/in/foo.cc:33:17: warning: unused variable 'j' [-Wunused-variable]
  register int i,j;
                 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:42:31: error: invalid types 'int[int]' for array subscript
     for(i=1;i<=n;i++) cin>>k[i];
                               ^
/in/foo.cc:51:28: error: expected ';' before ')' token
             cout<<num[i][j])<<" ";
                            ^
/in/foo.cc:59:17: error: 't' was not declared in this scope
             for(t=0;t<ccnt[j];t++) if(!gotos[num[j][t]]) p--;
                 ^

信息

递交者
类型
递交
题目
P1819 航空管制
语言
C++
递交时间
2024-06-14 15:15:41
评测时间
2024-06-14 15:15:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes