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_37804202_11234.cpp: In function 'void pushup(PW&, const PW&, const PW&)':
0_0_37804202_11234.cpp:42:9: error: assignment of member 'PW::ans1' in read-only object
  s3.ans1=max(s1.ans1,s2.ans1);
         ^
0_0_37804202_11234.cpp:43:9: error: assignment of member 'PW::ans2' in read-only object
  s3.ans2=max(s1.ans2,s2.ans2);
         ^
0_0_37804202_11234.cpp:44:6: error: assignment of member 'PW::a' in read-only object
  s3.a=max(s1.a,s2.a);
      ^
0_0_37804202_11234.cpp:45:6: error: assignment of member 'PW::b' in read-only object
  s3.b=max(s1.b,s2.b);
      ^
0_0_37804202_11234.cpp:46:6: error: assignment of member 'PW::c' in read-only object
  s3.c=max(s1.c,s2.c);
      ^
0_0_37804202_11234.cpp:47:6: error: assignment of member 'PW::d' in read-only object
  s3.d=max(s1.d,s2.d);
      ^
0_0_37804202_11234.cpp:48:6: error: assignment of member 'PW::e' in read-only object
  s3.e=max(s1.e,s2.e);
      ^
0_0_37804202_11234.cpp:49:6: error: assignment of member 'PW::f' in read-only object
  s3.f=max(s1.f,s2.f);
      ^
0_0_37804202_11234.cpp:50:6: error: assignment of member 'PW::g' in read-only object
  s3.g=max(s1.g,s2.g);
      ^
0_0_37804202_11234.cpp:51:6: error: assignment of member 'PW::h' in read-only object
  s3.h=max(s1.h,s2.h);
      ^
0_0_37804202_11234.cpp:52:6: error: assignment of member 'PW::i' in read-only object
  s3.i=max(s1.i,s2.i);
      ^
0_0_37804202_11234.cpp:53:6: error: assignment of member 'PW::j' in read-only object
  s3.j=max(s1.j,s2.j);
      ^
0_0_37804202_11234.cpp:55:9: error: assignment of member 'PW::ans1' in read-only object
  s3.ans1=max({s3.ans1,s1.g+s2.b,s1.a+s2.h,s1.c+s2.d});
         ^
0_0_37804202_11234.cpp:56:9: error: assignment of member 'PW::ans2' in read-only object
  s3.ans2=max({s3.ans2,s1.i+s2.b,s1.a+s2.j,s1.e+s2.e});
         ^
0_0_37804202_11234.cpp:58:6: error: assignment of member 'PW::c' in read-only object
  s3.c=max(s1.c,s1.a+s2.a);
      ^
0_0_37804202_11234.cpp:59:6: error: assignment of member 'PW::d' in read-only object
  s3.d=max(s3.d,s1.b+s2.b);
      ^
0_0_37804202_11234.cpp:60:6: error: assignment of member 'PW::e' in read-only object
  s3.e=max(s3.e,s1.a+s2.b);
      ^
0_0_37804202_11234.cpp:61:6: error: assignment of member 'PW::f' in read-only object
  s3.f=max(s3.f,s1.b+s2.a);
      ^
0_0_37804202_11234.cpp:62:6: error: assignment of member 'PW::g' in read-only object
  s3.g=max({s3.g,s1.a+s2.e,s1.c+s2.b});
      ^
0_0_37804202_11234.cpp:63:6: error: assignment of member 'PW::h' in read-only object
  s3.h=max({s3.h,s1.a+s2.d,s1.e+s2.b});
      ^
0_0_37804202_11234.cpp:64:6: error: assignment of member 'PW::i' in read-only object
  s3.i=max({s3.i,s1.a+s2.f,s1.e+s2.a});
      ^
0_0_37804202_11234.cpp:65:6: error: assignment of member 'PW::j' in read-only object
  s3.j=max({s3.j,s1.b+s2.e,s1.f+s2.b});
      ^


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 20:05:02, Gzip enabled