/ WHOJ /

记录详情

Compile Error

foo.cc:1:2: error: invalid preprocessing directive #incnt2ude; did you mean #include?
    1 | #incnt2ude<bits/stdc++.h>
      |  ^~~~~~~~~
      |  include
foo.cc: In function 'int read()':
foo.cc:7:16: error: 'getchar' was not declared in this scope
    7 |         char c=getchar();
      |                ^~~~~~~
foo.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #incnt2ude<bits/stdc++.h>
foo.cc: In function 'int main()':
foo.cc:52:17: error: 'scanf' was not declared in this scope
   52 |                 scanf("%lld",&z);
      |                 ^~~~~
foo.cc:61:17: error: 'x' was not declared in this scope
   61 |                 x=read();
      |                 ^
foo.cc:62:17: error: 'y' was not declared in this scope
   62 |                 y=read();
      |                 ^
foo.cc:69:9: error: 'printf' was not declared in this scope
   69 |         printf("%d\n%lld\n",ans,tot);
      |         ^~~~~~
foo.cc:69:9: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1743 拉力赛
题目数据
下载
语言
C++
递交时间
2022-09-30 19:52:33
评测时间
2022-09-30 19:52:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes