编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#1880 | #993. 汉诺塔问题 | Compile Error | 0 | 0 ms | 0 K | C++ 17 / 971 B | t330026143 | 2023-10-15 16:58:46 |
using namespace std;
const int maxn = 31;
int st, top;
int n = 6, last = -1, judge;
int priority;
char ch;
void
int
编译信息
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:50:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
50 | printf("%lld\n",ans);
| ^~~
| abs
/sandbox/1/a.cpp:31:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | scanf("%d\n",&n);
| ~~~~~^~~~~~~~~~~
/sandbox/1/a.cpp:32:27: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | for(int i=0;i<6;i++)scanf("%s",ch),priority[i][0]=ch[0]-'A',priority[i][1]=ch[1]-'A';
| ~~~~~^~~~~~~~~