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_38594765_10057.cpp: In function 'int main()':
0_0_38594765_10057.cpp:18:5: error: invalid types 'int[int]' for array subscript
  a[1]=k*c+(m+n)/2*a;
     ^
0_0_38594765_10057.cpp:19:5: error: invalid types 'int[int]' for array subscript
  a[2]=k*c+(m+n)/3*b;
     ^
0_0_38594765_10057.cpp:20:5: error: invalid types 'int[int]' for array subscript
  a[3]=(n+m+2k)/2*a;
     ^
0_0_38594765_10057.cpp:20:12: error: unable to find numeric literal operator 'operator""k'
  a[3]=(n+m+2k)/2*a;
            ^~
0_0_38594765_10057.cpp:20:12: note: use -fext-numeric-literals to enable more built-in suffixes
0_0_38594765_10057.cpp:21:5: error: invalid types 'int[int]' for array subscript
  a[4]=(n+m+2k)/3*b;
     ^
0_0_38594765_10057.cpp:21:12: error: unable to find numeric literal operator 'operator""k'
  a[4]=(n+m+2k)/3*b;
            ^~
0_0_38594765_10057.cpp:21:12: note: use -fext-numeric-literals to enable more built-in suffixes
0_0_38594765_10057.cpp:22:5: error: invalid types 'int[int]' for array subscript
  a[5]=k*c+n/2*a+m/3*b;
     ^
0_0_38594765_10057.cpp:23:5: error: invalid types 'int[int]' for array subscript
  a[6]=k*c+m/2*a+n/3*b;
     ^
0_0_38594765_10057.cpp:25:6: error: invalid types 'int[int]' for array subscript
   a[1]=a[1]+1;
      ^
0_0_38594765_10057.cpp:25:11: error: invalid types 'int[int]' for array subscript
   a[1]=a[1]+1;
           ^
0_0_38594765_10057.cpp:26:6: error: invalid types 'int[int]' for array subscript
   a[2]=a[2]+1;
      ^
0_0_38594765_10057.cpp:26:11: error: invalid types 'int[int]' for array subscript
   a[2]=a[2]+1;
           ^
0_0_38594765_10057.cpp:27:6: error: invalid types 'int[int]' for array subscript
   a[5]=a[5]+1;
      ^
0_0_38594765_10057.cpp:27:11: error: invalid types 'int[int]' for array subscript
   a[5]=a[5]+1;
           ^
0_0_38594765_10057.cpp:30:6: error: invalid types 'int[int]' for array subscript
   a[3]=a[3]+1;
      ^
0_0_38594765_10057.cpp:30:11: error: invalid types 'int[int]' for array subscript
   a[3]=a[3]+1;
           ^
0_0_38594765_10057.cpp:31:6: error: invalid types 'int[int]' for array subscript
   a[4]=a[4]+1;
      ^
0_0_38594765_10057.cpp:31:11: error: invalid types 'int[int]' for array subscript
   a[4]=a[4]+1;
           ^
0_0_38594765_10057.cpp:32:6: error: invalid types 'int[int]' for array subscript
   a[6]=a[6]+1;
      ^
0_0_38594765_10057.cpp:32:11: error: invalid types 'int[int]' for array subscript
   a[6]=a[6]+1;
           ^
0_0_38594765_10057.cpp:34:17: error: invalid types 'int[int]' for array subscript
  pay=min(fun(a[1],a[2],a[3]),fun(a[4],a[5],a[6]))
                 ^
0_0_38594765_10057.cpp:34:22: error: invalid types 'int[int]' for array subscript
  pay=min(fun(a[1],a[2],a[3]),fun(a[4],a[5],a[6]))
                      ^
0_0_38594765_10057.cpp:34:27: error: invalid types 'int[int]' for array subscript
  pay=min(fun(a[1],a[2],a[3]),fun(a[4],a[5],a[6]))
                           ^
0_0_38594765_10057.cpp:34:37: error: invalid types 'int[int]' for array subscript
  pay=min(fun(a[1],a[2],a[3]),fun(a[4],a[5],a[6]))
                                     ^
0_0_38594765_10057.cpp:34:42: error: invalid types 'int[int]' for array subscript
  pay=min(fun(a[1],a[2],a[3]),fun(a[4],a[5],a[6]))
                                          ^
0_0_38594765_10057.cpp:34:47: error: invalid types 'int[int]' for array subscript
  pay=min(fun(a[1],a[2],a[3]),fun(a[4],a[5],a[6]))
                                               ^


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-28 13:03:00, Gzip enabled