Monetos

Taškai: 0

Compile: FAIL

monetos.cpp: In lambda function: monetos.cpp:33:48: error: expected ‘{’ before ‘=’ token 33 | if(dpmax[j-mons] != -100000100)[j] = max(dpmax[j], dpmax[j-mons]+monv); | ^ monetos.cpp: In function ‘int main()’: monetos.cpp:33:82: error: no match for ‘operator=’ (operand types are ‘main()::<lambda()>’ and ‘const long int’) 33 | if(dpmax[j-mons] != -100000100)[j] = max(dpmax[j], dpmax[j-mons]+monv); | ^ monetos.cpp:33:46: note: candidate: ‘main()::<lambda()>& main()::<lambda()>::operator=(const main()::<lambda()>&)’ (deleted) 33 | if(dpmax[j-mons] != -100000100)[j] = max(dpmax[j], dpmax[j-mons]+monv); | ^ monetos.cpp:33:46: note: no known conversion for argument 1 from ‘const long int’ to ‘const main()::<lambda()>&’

nr.resulttimemessage