Compile Error
foo.cc: In function ‘void dts::main()’: foo.cc:20:9: error: ‘scanf’ was not declared in this scope 20 | while (~scanf("%lld%lld",&a,&b)) | ^~~~~ foo.cc:21:1: error: ‘printf’ was not declared in this scope 21 | printf("%lld\n",a+b-gcd(a,b)); | ^~~~~~ foo.cc:2:1: note: ‘printf’ is defined in header ‘<cstdio>’; this is probably fixable by adding ‘#include <cstdio>’ 1 | #include <cmath> +++ |+#include <cstdio> 2 | using namespace std;
信息
- 递交者
- 类型
- 递交
- 题目
- P1168 Leave-绿光
- 语言
- C++
- 递交时间
- 2025-07-21 14:39:47
- 评测时间
- 2025-07-21 14:39:47
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes