/ Vijos /

记录详情

Compile Error

/in/foo.cc:4:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
 #pragma comment(linker,"/STACK:102400000,102400000")
 
/in/foo.cc:124:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
 #pragma comment(linker,"/STACK:102400000,102400000")
 
/in/foo.cc:134:11: error: redefinition of 'const int maxn'
 const int maxn = 1000 + 5;
           ^~~~
/in/foo.cc:14:11: note: 'const int maxn' previously defined here
 const int maxn = 1000 + 5;
           ^~~~
/in/foo.cc:135:5: error: redefinition of 'int n'
 int n, m;
     ^
/in/foo.cc:15:5: note: 'int n' previously declared here
 int n, m;
     ^
/in/foo.cc:135:8: error: redefinition of 'int m'
 int n, m;
        ^
/in/foo.cc:15:8: note: 'int m' previously declared here
 int n, m;
        ^
/in/foo.cc:136:13: error: redefinition of 'char ch [100]'
 char  ch[100];
             ^
/in/foo.cc:16:7: note: 'char ch [100]' previously declared here
 char  ch[100];
       ^~
/in/foo.cc:137:23: error: redefinition of 'std::pair<int, int> a [1005]'
 pair<int, int>  a[maxn];
                       ^
/in/foo.cc:17:17: note: 'std::pair<int, int> a [1005]' previously defined here
 pair<int, int>  a[maxn];
                 ^
/in/foo.cc:138:19: error: redefinition of 'int tar [1005][1005]'
 int tar[maxn][maxn];
                   ^
/in/foo.cc:18:5: note: 'int tar [1005][1005]' previously declared here
 int tar[maxn][maxn];
     ^~~
/in/foo.cc:139:8: error: redefinition of 'int dx []'
 int dx[]={-1,-2,-2,-1,1,2,2,1};
        ^
/in/foo.cc:19:5: note: 'int dx [8]' previously defined here
 int dx[]={-1,-2,-2,-1,1,2,2,1};
     ^~
/in/foo.cc:140:8: error: redefinition of 'int dy []'
 int dy[]={-2,-1,1,2,2,1,-1,-2};
        ^
/in/foo.cc:20:5: note: 'int dy [8]' previously defined here
 int dy[]={-2,-1,1,2,2,1,-1,-2};
     ^~
/in/foo.cc:141:19: error: redefinition of 'std::vector<int> G [1005]'
 vector<int> G[maxn];
                   ^
/in/foo.cc:21:13: note: 'std::vector<int> G [1005]' previously declared here
 vector<int> G[maxn];
             ^
/in/foo.cc:142:16: error: redefinition of 'int myleft [1005]'
 int myleft[maxn];
                ^
/in/foo.cc:22:5: note: 'int myleft [1005]' previously declared here
 int myleft[maxn];
     ^~~~~~
/in/foo.cc:143:12: error: redefinition of 'bool T [1005]'
 bool T[maxn];
            ^
/in/foo.cc:23:6: note: 'bool T [1005]' previously declared here
 bool T[maxn];
      ^
/in/foo.cc:144:15: error: redefinition of 'bool flag [1005]'
 bool flag[maxn];
               ^
/in/foo.cc:24:6: note: 'bool flag [1005]' previously declared here
 bool flag[maxn];
      ^~~~
/in/foo.cc: In function 'bool match(int)':
/in/foo.cc:146:6: error: redefinition of 'bool match(int)'
 bool match(int u){
      ^~~~~
/in/foo.cc:47:6: note: 'bool match(int)' previously defined here
 bool match(int u){
      ^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:164:5: error: redefinition of 'int main()'
 int main(){
     ^~~~
/in/foo.cc:83:5: note: 'int main()' previously defined here
 int main(){
     ^~~~

信息

递交者
类型
递交
题目
P1729 Knights
语言
C++
递交时间
2019-07-24 00:22:41
评测时间
2019-07-24 00:22:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes