QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#518479 | #5098. 第一代图灵机 | rollerZ | Compile Error | / | / | C++23 | 2.0kb | 2024-08-13 21:00:05 | 2024-08-13 21:00:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
In file included from /usr/include/c++/13/cassert:44, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106, from answer.code:1: answer.code: In function ‘void Tree::Ins(int, int, int, int, int)’: answer.code:30:8: error: ‘sum’ was not declared in this scope; did you mean ‘Sum’? 30 | assert(sum[l]==sum[v]); | ^~~ answer.code: In function ‘int main()’: answer.code:43:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 43 | int i,j;scanf("%d%d%d",&n,&m,&q); | ~~~~~^~~~~~~~~~~~~~~~~~~ answer.code:44:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 44 | for(i=1;i<=n;i++) scanf("%lld",&Sum[i]),Sum[i]+=Sum[i-1]; | ~~~~~^~~~~~~~~~~~~~~~ answer.code:46:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 46 | for(i=1;i<=n;i++) scanf("%d",&c[i]),Tree::Ins(i,*f[c[i]].rbegin()),f[c[i]].insert(i); | ~~~~~^~~~~~~~~~~~ answer.code:48:33: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 48 | int op,x,y;scanf("%d%d%d",&op,&x,&y); | ~~~~~^~~~~~~~~~~~~~~~~~~~