----- Nội dung dịch tự động từ ảnh ----- #include #include using namespace std; int main() { int n = readInt (); int k = readInt (); map N; while (n--) M [readInt()]++; long long res = 0; for (pair e : M) { int nx = e. first; int fx = e.second; int z k e. first; int fy= M [2]; M.erase (z); if (nx == z) res += 1LL * fx * (fx - 1) / 2; else res += 1LL * fx * fy; } cout << res; return 0; h Compile Log emcapdoi.cpp mcapdoi.cpp mcapdoi.cpp Debug Close I Find Results Message In function 'int main()': [Error] 'readint' was not declared in this scope [Error] range-based 'for' loops are not allowed in C++98 mode