Runtime Error for comparator function

Правка en1, от trgt26, 2023-07-07 22:39:04

In this problem, I have used a comparator function named "checking", for this, it is giving runtime error. But if i use another comparator function named "checking2" then it gets accepted. But these two comparator function is almost same. Why is it giving runtime error for checking function? please help.

Problem Link: https://codeforces.net/contest/1846/problem/C

Accepted code with checking comparator: https://codeforces.net/contest/1846/submission/212708795

Runtime error code with cheking2 comparator: https://codeforces.net/contest/1846/submission/212720506

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский trgt26 2023-07-07 22:40:36 2 Tiny change: 'error for checking function?' -> 'error for "checking" function?'
en1 Английский trgt26 2023-07-07 22:39:04 610 Initial revision (published)