0_0_22075558_28066.cpp:5:6: error: expected nested-name-specifier before '&' token
using namespace std;
^
0_0_22075558_28066.cpp:5:21: error: expected identifier before '&' token
using namespace std;
^
0_0_22075558_28066.cpp:5:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_22075558_28066.cpp:5:27: error: 'std' does not name a type
using namespace std;
^
0_0_22075558_28066.cpp:7:5: error: 'nbsp' declared as reference but not initialized
int x[320];
^
0_0_22075558_28066.cpp:7:10: error: 'x' does not name a type
int x[320];
^
0_0_22075558_28066.cpp:9:5: error: redefinition of 'int& nbsp'
int dp[320][32];
^
0_0_22075558_28066.cpp:7:5: note: 'int& nbsp' previously declared here
int x[320];
^
0_0_22075558_28066.cpp:9:10: error: 'dp' does not name a type
int dp[320][32];
^
0_0_22075558_28066.cpp:11:5: error: redefinition of 'int& nbsp'
int f[320][320];
^
0_0_22075558_28066.cpp:7:5: note: 'int& nbsp' previously declared here
int x[320];
^
0_0_22075558_28066.cpp:11:10: error: 'f' does not name a type
int f[320][320];
^
0_0_22075558_28066.cpp:13:5: error: redefinition of 'int& nbsp'
int s[320][320];
^
0_0_22075558_28066.cpp:7:5: note: 'int& nbsp' previously declared here
int x[320];
^
0_0_22075558_28066.cpp:13:10: error: 's' does not name a type
int s[320][320];
^
0_0_22075558_28066.cpp:15:5: error: redefinition of 'int& nbsp'
int main()
^
0_0_22075558_28066.cpp:7:5: note: 'int& nbsp' previously declared here
int x[320];
^
0_0_22075558_28066.cpp: In function 'int main()':
0_0_22075558_28066.cpp:19:29: error: 'nbsp' declared as reference but not initialized
int i,j,k;
^
0_0_22075558_28066.cpp:19:34: error: 'i' was not declared in this scope
int i,j,k;
^
0_0_22075558_28066.cpp:19:36: error: 'j' was not declared in this scope
int i,j,k;
^
0_0_22075558_28066.cpp:19:38: error: 'k' was not declared in this scope
int i,j,k;
^
0_0_22075558_28066.cpp:21:29: error: redeclaration of 'int& nbsp'
int v,p;
^
0_0_22075558_28066.cpp:19:29: note: 'int& nbsp' previously declared here
int i,j,k;
^
0_0_22075558_28066.cpp:21:34: error: 'v' was not declared in this scope
int v,p;
^
0_0_22075558_28066.cpp:21:36: error: 'p' was not declared in this scope
int v,p;
^
0_0_22075558_28066.cpp:27:61: error: 'x' was not declared in this scope
scanf("%d",&x[i]);
^
0_0_22075558_28066.cpp:37:73: error: 'f' was not declared in this scope
f[i][j]=0;
^
0_0_22075558_28066.cpp:39:77: error: 'nbsp' declared as reference but not initialized
int s=(i+j)/2;
^
0_0_22075558_28066.cpp:39:82: error: 's' was not declared in this scope
int s=(i+j)/2;
^
0_0_22075558_28066.cpp:49:32: error: 'dp' was not declared in this scope
memset(dp,-1,sizeof(dp));
^
0_0_22075558_28066.cpp:49:48: error: 'memset' was not declared in this scope
memset(dp,-1,sizeof(dp));
^
0_0_22075558_28066.cpp:55:58: error: 'f' was not declared in this scope
dp[i][1]=f[1][i];
^
0_0_22075558_28066.cpp:57:49: error: 's' was not declared in this scope
s[i][1]=1;
^
0_0_22075558_28066.cpp:65:55: error: 's' was not declared in this scope
for(k=s[v][j-1];k<v;++k)
^
0_0_22075558_28066.cpp:69:101: error: 'f' was not declared in this scope
if(dp[v][j]==-1||dp[k][j-1]+f[k+1][v]<dp[v][j])
^
0_0_22075558_28066.cpp:73:117: error: 'f' was not declared in this scope
dp[v][j]=dp[k][j-1]+f[k+1][v];
^
0_0_22075558_28066.cpp:75:97: error: 's' was not declared in this scope
s[v][j]=k;
^
0_0_22075558_28066.cpp:85:79: error: 's' was not declared in this scope
for(k=s[i][j-1];k<=s[i+1][j];++k)
^
0_0_22075558_28066.cpp:87:125: error: 'f' was not declared in this scope
if(dp[i][j]==-1||dp[k][j-1]+f[k+1][i]<dp[i][j])
^
0_0_22075558_28066.cpp:91:141: error: 'f' was not declared in this scope
dp[i][j]=dp[k][j-1]+f[k+1][i];
^
0_0_22075558_28066.cpp:93:121: error: 's' was not declared in this scope
s[i][j]=k;
^
0_0_22075558_28066.cpp:103:32: error: invalid conversion from 'int*' to 'int' [-fpermissive]
return 0;
^
0_0_22075558_28066.cpp: At global scope:
0_0_22075558_28066.cpp:108:1: error: 'HDU3305' does not name a type
HDU3305
^
0_0_22075558_28066.cpp:114:21: error: expected identifier before '&' token
using namespace std;
^
0_0_22075558_28066.cpp:114:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_22075558_28066.cpp:114:27: error: 'std' does not name a type
using namespace std;
^
0_0_22075558_28066.cpp:116:7: error: conflicting declaration 'const int& nbsp'
const int MAX=1245;
^
0_0_22075558_28066.cpp:7:5: note: previous declaration as 'int& nbsp'
int x[320];
^
0_0_22075558_28066.cpp:116:16: error: redefinition of 'int& nbsp'
const int MAX=1245;
^
0_0_22075558_28066.cpp:7:5: note: 'int& nbsp' previously declared here
int x[320];
^
0_0_22075558_28066.cpp:116:21: error: 'MAX' does not name a type
const int MAX=1245;
^
0_0_22075558_28066.cpp:118:5: error: redefinition of 'int& nbsp'
int a[MAX];
^
0_0_22075558_28066.cpp:7:5: note: 'int& nbsp' previously declared here
int x[320];
^
0_0_22075558_28066.cpp:118:10: error: 'a' does not name a type
int a[MAX];
^
0_0_22075558_28066.cpp:120:6: error: conflicting declaration 'long int& nbsp'
long long sqr[MAX];
^
0_0_22075558_28066.cpp:7:5: note: previous declaration as 'int& nbsp'
int x[320];
^
0_0_22075558_28066.cpp:120:16: error: conflicting declaration 'long int& nbsp'
long long sqr[MAX];
^
0_0_22075558_28066.cpp:7:5: note: previous declaration as 'int& nbsp'
int x[320];
^
0_0_22075558_28066.cpp:120:21: error: 'sqr' does not name a type
long long sqr[MAX];
^
0_0_22075558_28066.cpp:122:6: error: conflicting declaration 'long int& nbsp'
long long sum[MAX];
^
0_0_22075558_28066.cpp:7:5: note: previous declaration as 'int& nbsp'
int x[320];
^
0_0_22075558_28066.cpp:122:16: error: conflicting declaration 'long int& nbsp'
long long sum[MAX];
^
0_0_22075558_28066.cp
|