QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#662408#9249. Elimination Series Once Moreucup-team3340Compile Error//C++203.6kb2024-10-20 23:51:332024-10-20 23:51:33

Details

answer.code: In function ‘void solve()’:
answer.code:96:13: error: too few arguments to function ‘ssize_t read(int, void*, size_t)’
   96 |     n = read();
      |         ~~~~^~
In file included from /usr/include/unistd.h:1166,
                 from /usr/include/c++/13/bits/atomic_wait.h:44,
                 from /usr/include/c++/13/bits/atomic_base.h:42,
                 from /usr/include/c++/13/bits/shared_ptr_atomic.h:33,
                 from /usr/include/c++/13/memory:81,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:56,
                 from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/unistd.h:34:1: note: declared here
   34 | read (int __fd, void *__buf, size_t __nbytes)
      | ^~~~
answer.code:97:13: error: too few arguments to function ‘ssize_t read(int, void*, size_t)’
   97 |     m = read();
      |         ~~~~^~
/usr/include/x86_64-linux-gnu/bits/unistd.h:34:1: note: declared here
   34 | read (int __fd, void *__buf, size_t __nbytes)
      | ^~~~
answer.code:102:20: error: too few arguments to function ‘ssize_t read(int, void*, size_t)’
  102 |         a[i] = read();
      |                ~~~~^~
/usr/include/x86_64-linux-gnu/bits/unistd.h:34:1: note: declared here
   34 | read (int __fd, void *__buf, size_t __nbytes)
      | ^~~~