Codeforces / polygon-issue-tracking

polygon-issue-tracking
16 stars 2 forks source link

testlib doesn't compile #547

Open jvmusin opened 1 week ago

jvmusin commented 1 week ago

Open basically any problem, go to Tests and click Preview Tests, you will see this message instead of test inputs:

ERROR: Unexpected verdict Can't compile file:
In file included from wfval.cpp:11:
testlib.h: In function 'void __testlib_set_binary(FILE*)':
testlib.h:448:39: error: 'FILE' {aka 'struct _iobuf'} has no member named '_file'
  448 | #define _fileno(_stream)  ((_stream)->_file)
      |                                       ^~~~~
testlib.h:467:18: note: in expansion of macro '_fileno'
  467 |         _setmode(_fileno(file), O_BINARY);
      |                  ^~~~~~~
CRASHED.
Input:

This is seen on many problems, including example-a-plus-b, id=69927 by mmrzayanov.

This also breaks API calls for tests input/output in some very weird way I don't want to investigate.

image