cph icon indicating copy to clipboard operation
cph copied to clipboard

Output perfectly matches with Expected Output, but it still says failed

Open Niraj81 opened this issue 4 years ago • 9 comments

I recently changed from gcc 6.3.0 to gcc 11.2.0, everything works same as before, but now CPH says failed even when the output is correct. I checked with more than 10 codes, that were previously accepted but now they all have the same error. I'm using c++ 17.

Extension Version: 5.8.7

VS Code Version: 1.60.0

Browser Version: MS Edge - Version 93.0.961.38 (Official build) (64-bit)

Operating System: Windows 10 64 bit

Niraj81 avatar Sep 09 '21 08:09 Niraj81

Please share the input, expected output, received output, the code, and a screenshot.

agrawal-d avatar Sep 09 '21 12:09 agrawal-d

CPH https://pasty.lus.pm/HROaFo

Niraj81 avatar Sep 10 '21 11:09 Niraj81

One of my observations :- https://pasty.lus.pm/iVW1El

Niraj81 avatar Sep 10 '21 11:09 Niraj81

Please share the input, expected output and received output as text, not image.

agrawal-d avatar Sep 10 '21 12:09 agrawal-d

Here's the code :- https://pasty.lus.pm/QBPJAl

Input :- 4 5 22222 5 21211 1 2 9 220222021

Expected Output ;- 11111 11111 11000 10211 1 1 110111011 110111010

Received Output :- 11111 11111 11000 10211 1 1 110111011 110111010

Niraj81 avatar Sep 14 '21 16:09 Niraj81

I am not able to reproduce the error. image

agrawal-d avatar Sep 15 '21 10:09 agrawal-d

I too am facing the same problem that too only in multi line output cases.

rsriramc avatar Dec 02 '21 10:12 rsriramc

This issue only happens when we use C++17, that too only in multiple line outputs. GCC 11.2.0. I've installed GCC using cygwin64.

Niraj81 avatar Jan 09 '22 18:01 Niraj81

I am facing same issue although i am using python 3.9.6 64-bit on my pc image

Edit : Never-mind it turns out I needed to comment FastIO in python to solve the issue

Pranav-Indalkar avatar Feb 11 '22 04:02 Pranav-Indalkar