Problem radioactive
User ChickenCoder
Submission Time 2024-01-31 11:52:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

radioactive.cpp:6:26: error: expected unqualified-id before ‘>’ token
6 | map<pair<int, int>, int> > mp;
| ^
radioactive.cpp: In function ‘long long int ans(long long int, int)’:
radioactive.cpp:14:6: error: ‘mp’ was not declared in this scope
14 | if (mp.count({n, c})) return mp[{n, c}];
| ^~
radioactive.cpp:36:9: error: expected primary-expression before ‘return’
36 | return return mp[{n, c}] = tot;
| ^~~~~~
radioactive.cpp:36:8: error: expected ‘;’ before ‘return’
36 | return return mp[{n, c}] = tot;
| ^~~~~~~
| ;
radioactive.cpp:36:16: error: ‘mp’ was not declared in this scope
36 | return return mp[{n, c}] = tot;
| ^~