QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#282049 | #6655. 巧克力 | ucup-team2335# | Compile Error | / | / | C++14 | 1.1kb | 2023-12-11 10:59:53 | 2023-12-11 10:59:54 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void add(long long int&, long long int)’: answer.code:5:33: error: ‘mod’ was not declared in this scope 5 | void add(int &x,int y) {x=(x+y)%mod;} | ^~~ answer.code: In function ‘long long int get(long long int)’: answer.code:8:9: error: ‘memset’ was not declared in this scope 8 | memset(f,0,sizeof(f)); | ^~~~~~ answer.code:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? +++ |+#include <cstring> 1 | #define int long long answer.code: In function ‘void solve()’: answer.code:36:9: error: ‘read’ was not declared in this scope 36 | read(n);read(m); | ^~~~ answer.code:37:9: error: ‘memset’ was not declared in this scope 37 | memset(stat,0,sizeof(stat)); | ^~~~~~ answer.code:37:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? answer.code:42:26: error: ‘puts’ was not declared in this scope 42 | if (s==0) return puts("0"),void(); | ^~~~ answer.code:46:49: error: ‘mod’ was not declared in this scope 46 | printf("%lld\n",(get(n)+get(m)-get(m-1)+mod)%mod); | ^~~ answer.code:46:9: error: ‘printf’ was not declared in this scope 46 | printf("%lld\n",(get(n)+get(m)-get(m-1)+mod)%mod); | ^~~~~~ answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | #define int long long answer.code: In function ‘int main()’: answer.code:50:9: error: ‘read’ was not declared in this scope 50 | read(T);while (T--) solve(); | ^~~~