编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#5068 | #1031. 统计 | Compile Error | 0 | 0 ms | 0 K | C++ 17 / 401 B | Raines | 2024-02-25 15:25:52 |
using namespace std;
int sum;
int
编译信息
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:6:2: error: 'cin' was not declared in this scope
6 | cin >> N >> Q;
| ^~~
/sandbox/1/a.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include<cstdio>
+++ |+#include <iostream>
2 | using namespace std;
/sandbox/1/a.cpp:8:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | scanf("%d", &cur);
| ~~~~~^~~~~~~~~~~~
/sandbox/1/a.cpp:15:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d%d", &l, &r);
| ~~~~~^~~~~~~~~~~~~~~~