Compile Error

foo.cc: In function ‘int main()’:
foo.cc:15:10: error: too few arguments to function ‘ssize_t write(int, const void*, size_t)’
   15 |     write(j);
      |     ~~~~~^~~
In file included from /nix/glibc-2.40-66-dev/include/bits/sigstksz.h:24,
                 from /nix/glibc-2.40-66-dev/include/signal.h:328,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/csignal:42,
                 from stdc++.h:116:
/nix/glibc-2.40-66-dev/include/unistd.h:378:16: note: declared here
  378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      |                ^~~~~
foo.cc:6:23: warning: unused variable ‘c’ [-Wunused-variable]
    6 |     long long int a,b,c,d=0;
      |                       ^

信息

递交者
类型
递交
题目
P1397 同余方程
语言
C++
递交时间
2025-08-07 09:23:41
评测时间
2025-08-07 09:23:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes