0_0_32045896_780.cpp:8:16: error: expected initializer before numeric constant
const int maxn 100000;
^
0_0_32045896_780.cpp:9:7: error: 'maxn' was not declared in this scope
int a[maxn<<1], b[max<<1];
^
0_0_32045896_780.cpp:9:24: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
int a[maxn<<1], b[max<<1];
^
0_0_32045896_780.cpp: In function 'int main()':
0_0_32045896_780.cpp:15:9: error: 'cin' was not declared in this scope
while (cin>>n)
^
0_0_32045896_780.cpp:22:4: error: 'a' was not declared in this scope
a[i] = w - l;
^
0_0_32045896_780.cpp:24:4: error: 'b' was not declared in this scope
b[i + n] = b[i] = 1;
^
0_0_32045896_780.cpp:28:9: error: 'a' was not declared in this scope
if ((a[i - 1]) >= 0 && (a[i] + a[i - 1]) >= 0)
^
0_0_32045896_780.cpp:31:5: error: 'b' was not declared in this scope
b[i] += b[i - 1];
^
0_0_32045896_780.cpp:40:21: error: 'b' was not declared in this scope
max1 = max(max1, b[i]);
^
0_0_32045896_780.cpp:46:3: error: 'cout' was not declared in this scope
cout << max1 << endl;
^
0_0_32045896_780.cpp:46:19: error: 'endl' was not declared in this scope
cout << max1 << endl;
^
|