Problem foreveralone
User dieunq1309
Submission Time 2023-09-06 18:23:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:16:7: error: no match for ‘operator[]’ (operand types are ‘std::pair<int, int>’ and ‘int’)
16 | ref[a] = 1;
| ^
foreveralone.cpp:17:7: error: no match for ‘operator[]’ (operand types are ‘std::pair<int, int>’ and ‘int’)
17 | ref[b] = 1;
| ^
foreveralone.cpp:25:10: error: no match for ‘operator[]’ (operand types are ‘std::pair<int, int>’ and ‘int’)
25 | if (ref[i] == 0) count++;
| ^