/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:13:11: error: too few arguments to function 'ssize_t read(int, void*, size_t)'
   13 |     n=read(),m=read();
      |       ~~~~^~
In file included from /nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/bits/sigstksz.h:24,
                 from /nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/signal.h:328,
                 from /nix/store/l4dvshb0bw0ipyx17f6rknzk83mdx81y-gcc-11.3.0/include/c++/11.3.0/csignal:42,
                 from stdc++.h:43:
/nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/unistd.h:371:16: note: declared here
  371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
      |                ^~~~
foo.cc:13:20: error: too few arguments to function 'ssize_t read(int, void*, size_t)'
   13 |     n=read(),m=read();
      |                ~~~~^~
In file included from /nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/bits/sigstksz.h:24,
                 from /nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/signal.h:328,
                 from /nix/store/l4dvshb0bw0ipyx17f6rknzk83mdx81y-gcc-11.3.0/include/c++/11.3.0/csignal:42,
                 from stdc++.h:43:
/nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/unistd.h:371:16: note: declared here
  371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
      |                ^~~~
foo.cc:14:59: error: too few arguments to function 'ssize_t read(int, void*, size_t)'
   14 |     for(int i=1;i<=n;i++)for(int j=1;j<=m;j++)A[i][j]=read();
      |                                                       ~~~~^~
In file included from /nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/bits/sigstksz.h:24,
                 from /nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/signal.h:328,
                 from /nix/store/l4dvshb0bw0ipyx17f6rknzk83mdx81y-gcc-11.3.0/include/c++/11.3.0/csignal:42,
                 from stdc++.h:43:
/nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/unistd.h:371:16: note: declared here
  371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
      |                ^~~~
foo.cc:40:10: error: too few arguments to function 'ssize_t write(int, const void*, size_t)'
   40 |     write(ans);
      |     ~~~~~^~~~~
In file included from /nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/bits/sigstksz.h:24,
                 from /nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/signal.h:328,
                 from /nix/store/l4dvshb0bw0ipyx17f6rknzk83mdx81y-gcc-11.3.0/include/c++/11.3.0/csignal:42,
                 from stdc++.h:43:
/nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/unistd.h:378:16: note: declared here
  378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1663 资源勘探
语言
C++
递交时间
2022-10-07 08:49:59
评测时间
2022-10-07 08:49:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes