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_38908597_9894.cpp:19:1: error: expected ',' or ';' before 'long'
   19 | long long z[M*3+5],*f{z+M*2},q[M*3+5],*g{q+M*2};
      | ^~~~
0_0_38908597_9894.cpp:19:29: error: expected unqualified-id before ',' token
   19 | long long z[M*3+5],*f{z+M*2},q[M*3+5],*g{q+M*2};
      |                             ^
0_0_38908597_9894.cpp:19:38: error: expected constructor, destructor, or type conversion before ',' token
   19 | long long z[M*3+5],*f{z+M*2},q[M*3+5],*g{q+M*2};
      |                                      ^
0_0_38908597_9894.cpp:19:41: error: expected constructor, destructor, or type conversion before '{' token
   19 | long long z[M*3+5],*f{z+M*2},q[M*3+5],*g{q+M*2};
      |                                         ^
0_0_38908597_9894.cpp: In function 'int main()':
0_0_38908597_9894.cpp:39:16: error: 'z' was not declared in this scope
   39 |         memset(z,0xcf,sizeof z);
      |                ^
0_0_38908597_9894.cpp:40:9: error: 'f' was not declared in this scope
   40 |         f[0]=0;
      |         ^
0_0_38908597_9894.cpp:42:20: error: 'q' was not declared in this scope
   42 |             memcpy(q,z,sizeof z);
      |                    ^
0_0_38908597_9894.cpp:44:26: error: 'g' was not declared in this scope
   44 |                 f[j]=max(g[j],g[j-w[i]]+v[i]);
      |                          ^


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 09:40:36, Gzip enabled