F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_17194231_26333.cpp:68:2: error: stray '#' in program
 }#include <cstdio>
  ^
0_0_17194231_26333.cpp:152:2: error: stray '#' in program
 }#include<iostream> 
  ^
0_0_17194231_26333.cpp:197:2: error: stray '#' in program
 }#include <cstdio>
  ^
0_0_17194231_26333.cpp:257:2: error: stray '#' in program
 }#include <cstdio>
  ^
0_0_17194231_26333.cpp:414:2: error: stray '#' in program
 }#include <cstdio>
  ^
0_0_17194231_26333.cpp:530:2: error: stray '#' in program
 }#include <cstdio>
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_17194231_26333.cpp:536:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:240:56: error: macro "min" passed 3 arguments, but takes just 2
     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
                                                        ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:56: error: macro "max" passed 3 arguments, but takes just 2
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
                                                        ^
0_0_17194231_26333.cpp:68:3: error: 'include' does not name a type
 }#include <cstdio>
   ^
0_0_17194231_26333.cpp:73:5: error: redefinition of 'int N'
 int N,M;
     ^
0_0_17194231_26333.cpp:5:7: note: 'int N' previously declared here
 int M,N,top = 0;
       ^
0_0_17194231_26333.cpp:73:7: error: redefinition of 'int M'
 int N,M;
       ^
0_0_17194231_26333.cpp:5:5: note: 'int M' previously declared here
 int M,N,top = 0;
     ^
0_0_17194231_26333.cpp:74:26: error: conflicting declaration 'char num [110]'
 char map[110][20],num[110],top;
                          ^
0_0_17194231_26333.cpp:6:16: note: previous declaration as 'int num [110]'
 int state[600],num[110];
                ^
0_0_17194231_26333.cpp:74:28: error: conflicting declaration 'char top'
 char map[110][20],num[110],top;
                            ^
0_0_17194231_26333.cpp:5:9: note: previous declaration as 'int top'
 int M,N,top = 0;
         ^
0_0_17194231_26333.cpp:75:20: error: conflicting declaration 'int cur [110]'
 int stk[70],cur[110];
                    ^
0_0_17194231_26333.cpp:8:5: note: previous declaration as 'int cur [20]'
 int cur[20];
     ^
0_0_17194231_26333.cpp:76:19: error: conflicting declaration 'int dp [110][70][70]'
 int dp[110][70][70];
                   ^
0_0_17194231_26333.cpp:7:5: note: previous declaration as 'int dp [20][600]'
 int dp[20][600];
     ^
0_0_17194231_26333.cpp: In function 'bool ok(int)':
0_0_17194231_26333.cpp:78:13: error: redefinition of 'bool ok(int)'
 inline bool ok(int x){  //判断该状态是否合法,即不存在相邻的1之间的距离小于3的
             ^
0_0_17194231_26333.cpp:9:13: note: 'bool ok(int)' previously defined here
 inline bool ok(int x){
             ^
0_0_17194231_26333.cpp: In function 'bool fit(int, int)':
0_0_17194231_26333.cpp:91:13: error: redefinition of 'bool fit(int, int)'
 inline bool fit(int x,int k)
             ^
0_0_17194231_26333.cpp:20:13: note: 'bool fit(int, int)' previously defined here
 inline bool fit(int x,int k){
             ^
0_0_17194231_26333.cpp: In function 'int jcount(int)':
0_0_17194231_26333.cpp:97:12: error: redefinition of 'int jcount(int)'
 inline int jcount(int x)
            ^
0_0_17194231_26333.cpp:24:12: note: 'int jcount(int)' previously defined here
 inline int jcount(int x)
            ^
0_0_17194231_26333.cpp: In function 'int main()':
0_0_17194231_26333.cpp:108:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17194231_26333.cpp:35:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17194231_26333.cpp:126:27: error: invalid types 'int[int]' for array subscript
                 dp[1][1][i]=num[i];
                           ^
0_0_17194231_26333.cpp:138:40: error: invalid types 'int[int]' for array subscript
                         if(dp[i-1][j][k]==-1)continue;
                                        ^
0_0_17194231_26333.cpp:139:35: error: invalid types 'int[int]' for array subscript
                         dp[i][k][t] =max(dp[i][k][t],dp[i-1][j][k]+num[t]);
                                   ^
0_0_17194231_26333.cpp:139:52: error: invalid types 'int[int]' for array subscript
                         dp[i][k][t] =max(dp[i][k][t],dp[i-1][j][k]+num[t]);
                                                    ^
0_0_17194231_26333.cpp:71:19: note: in definition of macro 'max'
 #define max(a,b) (a) > (b) ? (a) : (b)
                   ^
0_0_17194231_26333.cpp:139:66: error: invalid types 'int[int]' for array subscript
                         dp[i][k][t] =max(dp[i][k][t],dp[i-1][j][k]+num[t]);
                                                                  ^
0_0_17194231_26333.cpp:71:25: note: in definition of macro 'max'
 #define max(a,b) (a) > (b) ? (a) : (b)
                         ^
0_0_17194231_26333.cpp:139:52: error: invalid types 'int[int]' for array subscript
                         dp[i][k][t] =max(dp[i][k][t],dp[i-1][j][k]+num[t]);
                                                    ^
0_0_17194231_26333.cpp:71:31: note: in definition of macro 'max'
 #define max(a,b) (a) > (b) ? (a) : (b)
                               ^
0_0_17194231_26333.cpp:139:66: error: invalid types 'int[int]' for array subscript
                         dp[i][k][t] =max(dp[i][k][t],dp[i-1][j][k]+num[t]);
                                                                  ^
0_0_17194231_26333.cpp:71:37: note: in definition of macro 'max'
 #define max(a,b) (a) > (b) ? (a) : (b)
                                     ^
0_0_17194231_26333.cpp:148:32: error: invalid types 'int[int]' for array subscript
        ans = max(ans,dp[i][j][k]);
                                ^
0_0_17194231_26333.cpp:71:25: note: in definition of macro 'max'
 #define max(a,b) (a) > (b) ? (a) : (b)
                         ^
0_0_17194231_26333.cpp:148:32: error: invalid types 'int[int]' for array subscript
        ans = max(ans,dp[i][j][k]);
                                ^
0_0_17194231_26333.cpp:71:37: note: in definition of macro 'max'
 #define max(a,b) (a) > (b) ? (a) : (b)
                                     ^
0_0_17194231_26333.cpp: At global scope:
0_0_17194231_26333.cpp:152:3: error: 'include' does not name a type
 }#include<iostream> 
   ^
0_0_17194231_26333.cpp:156:17: error: conflicting declaration 'int dp [2048][12]'
 int dp[1<<11][12]; 
                 ^
0_0_17194231_26333.cpp:7:5: note: previous declaration as 'int dp [20][600]'
 int dp[20][600];
     ^
0_0_17194231_26333.cpp: In function 'int main()':
0_0_17194231_26333.cpp:158:5: error: redefinition of 'int main()'
 int main() 
     ^
0_0_17194231_26333.cpp:35:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17194231_26333.cpp:184:87: error: 'min' was not declared in this scope
                                 dp[S][i] =min(dp[S^(1<<(i-1))][j] + dis[j][i],dp[S][i]); 
                                                                                       ^
0_0_17194231_26333.cpp: At global scope:
0_0_17194231_26333.cpp:197:3: error: 'include' does not name a type
 }#include <cstdio>
   ^
0_0_17194231_26333.cpp:203:5: error: redefinition of 'int N'
 int N,M;
     ^
0_0_17194231_26333.cpp:5:7: note: 'int N' previously declared here
 int M,N,top = 0;
       ^
0_0_17194231_26333.cpp:203:7: error: redefinition of 'int M'
 int N,M;
       ^
0_0_17194231_26333.cpp:5:5: note: 'int M' previously declared here
 int M,N,top = 0;
     ^
0_0_17194231_26333.cpp:206:30: error: conflicting declaration 'int dp [59050][11]'
 int edge[11][11],dp[59050][11];
                              ^
0_0_17194231_26333.cpp:7:5: note: previous declaration as 'int dp [20][600]'
 int dp[20][600];
     ^
0_0_17194231_26333.cpp: In function 'int main()':
0_0_17194231_26333.cpp:208:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17194231_26333.cpp:35:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17194231_26333.cpp: At global scope:
0_0_17194231_26333.cpp:257:3: error: 'include' does not name a type
 }#include <cstdio>
   ^
0_0_17194231_26333.cpp:262:35: error: conflicting declaration 'long long int dp [16384][14][14]'
 long long dp[MAX_S][MAXN+1][MAXN+1];
                                   ^
0_0_17194231_26333.cpp:7:5: note: previous declaration as 'int dp [20][600]'
 int dp[20][600];
     ^
0_0_17194231_26333.cpp:264:24: error: conflicting declaration 'int edge [14][14]'
 int edge[MAXN+1][MAXN+1];
                        ^
0_0_17194231_26333.cpp:206:5: note: previous declaration as 'int edge [11][11]'
 int edge[11][11],dp[59050][11];
     ^
0_0_17194231_26333.cpp:267:5: error: redefinition of 'int N'
 int N,M;
     ^
0_0_17194231_26333.cpp:5:7: note: 'int N' previously declared here
 int M,N,top = 0;
       ^
0_0_17194231_26333.cpp:267:7: error: redefinition of 'int M'
 int N,M;
       ^
0_0_17194231_26333.cpp:5:5: note: 'int M' previously declared here
 int M,N,top = 0;
     ^
0_0_17194231_26333.cpp: In function 'int main()':
0_0_17194231_26333.cpp:268:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17194231_26333.cpp:35:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17194231_26333.cpp:296:26: erro


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-29 11:45:32, Gzip enabled