记录详情

Compile Error

foo.cc:6:10: error: stray '\' in program
    6 | printf(%d\n,n-1);
      |          ^
foo.cc:8:10: error: stray '\' in program
    8 | printf(%d\n,n-y/x-1);
      |          ^
foo.cc: In function 'int main()':
foo.cc:4:7: error: expected primary-expression before '%' token
    4 | scanf(%d%d%d,&n,&x,&y);
      |       ^
foo.cc:4:8: error: 'd' was not declared in this scope
    4 | scanf(%d%d%d,&n,&x,&y);
      |        ^
foo.cc:4:1: error: 'scanf' was not declared in this scope
    4 | scanf(%d%d%d,&n,&x,&y);
      | ^~~~~
foo.cc:6:8: error: expected primary-expression before '%' token
    6 | printf(%d\n,n-1);
      |        ^
foo.cc:6:1: error: 'printf' was not declared in this scope
    6 | printf(%d\n,n-1);
      | ^~~~~~
foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | int main()
foo.cc:8:8: error: expected primary-expression before '%' token
    8 | printf(%d\n,n-y/x-1);
      |        ^
foo.cc:8:1: error: 'printf' was not declared in this scope
    8 | printf(%d\n,n-y/x-1);
      | ^~~~~~
foo.cc:8:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
苹果与虫子2
语言
C++
递交时间
2023-06-19 20:49:10
评测时间
2023-06-19 20:49:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes