Problem contestcalc
User nguyendinhanh1508
Submission Time 2024-01-29 09:17:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp: In function ‘int32_t main()’:
contestcalc.cpp:19:23: error: ‘struct std::pair<std::__cxx11::basic_string<char>, long long int>’ has no member named ‘n’
19 | if(n[i] == a[j].n){
| ^
contestcalc.cpp:20:21: error: ‘struct std::pair<std::__cxx11::basic_string<char>, long long int>’ has no member named ‘s’
20 | sum += a[j].s;
| ^