C++ compiler issues + Custom invocation results not matching with verdict

Правка en1, от NULLgorithm, 2024-06-26 00:48:30

Problem : CF Round 955 F

  • 267435166 in C++ 20 fails custom invocation for test case 1 whereas same code passes custom invocation for C++ 17 and 14
  • 267434819 in C++ 17 passes custom invocation for test case 1 whereas verdict shows WA on test case 1

test case:

2
5
2 2 3 4 5
3
2 1
4 1
1 1
5
1 2 3 4 5
9
1 4
2 3
5 2
3 1
1 1
5 1
4 1
3 1
2 1

Custom invocation output for C++ 17:

-1 -1
1 2
1 4
3 4
-1 -1
1 3
1 3
1 5
1 5
2 5
2 5
2 5
2 5
-1 -1

=====
Used: 30 ms, 0 KB

Submission grader output:

-1 -1
1 2
1 4
3 4
-1 -1
1 3
1 3
1 5
1 5
2 5
2 5
2 5
2 5
5 5

The code passes test case 1 on my machine as well. Can anyone please help me out??

Теги c++ compilers, custom invocation, weird verdict

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский NULLgorithm 2024-06-26 00:53:37 147 Tiny change: ' answer.\ntest cas' -> ' answer.\n\ntest cas'
en1 Английский NULLgorithm 2024-06-26 00:48:30 918 Initial revision (published)