foo.cc: In function 'int run(int)':
foo.cc:17:37: error: 'dy' was not declared in this scope
else if(cz[a]=='['&&!nc[p]) return dy[a]; //若当前内存数值为0,则跳过循环来到右括号
^~
foo.cc:17:37: note: suggested alternative: 'd'
else if(cz[a]=='['&&!nc[p]) return dy[a]; //若当前内存数值为0,则跳过循环来到右括号
^~
d
foo.cc:18:36: error: 'dy' was not declared in this scope
else if(cz[a]==']'&&nc[p]) return dy[a]; //若当前内存数值不为0,则回到左括号
^~
foo.cc:18:36: note: suggested alternative: 'd'
else if(cz[a]==']'&&nc[p]) return dy[a]; //若当前内存数值不为0,则回到左括号
^~
d
foo.cc: In function 'int main()':
foo.cc:28:6: warning: unused variable 'tot' [-Wunused-variable]
int tot=0;
^~~
[Hydro](https://hydro.ac)提供评测服务