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_21467072_7659.cpp:9:23: error: conversion from 'double' to 'long long unsigned int' not considered for non-type template argument
 array<int, ML * MU * N> dp;
                       ^
0_0_21467072_7659.cpp:9:23: error: could not convert template argument '3.5e+6' to 'long long unsigned int'
0_0_21467072_7659.cpp:9:27: error: invalid type in declaration before ';' token
 array<int, ML * MU * N> dp;
                           ^
0_0_21467072_7659.cpp: In function 'int main()':
0_0_21467072_7659.cpp:40:12: error: request for member 'fill' in 'dp', which is of non-class type 'int'
         dp.fill(0);
            ^
0_0_21467072_7659.cpp:44:21: error: invalid types 'int[int]' for array subscript
                 dp[j] = max(dp[j], dp[j - va[i]] + va[i]);
                     ^
0_0_21467072_7659.cpp:44:33: error: invalid types 'int[int]' for array subscript
                 dp[j] = max(dp[j], dp[j - va[i]] + va[i]);
                                 ^
0_0_21467072_7659.cpp:44:48: error: invalid types 'int[int]' for array subscript
                 dp[j] = max(dp[j], dp[j - va[i]] + va[i]);
                                                ^
0_0_21467072_7659.cpp:45:43: error: invalid types 'int[int]' for array subscript
         printf("%.2f\n", dp[(int)(q * 100)] / 100.00);
                                           ^


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-17 14:37:40, Gzip enabled