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);
^
|