QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#484742 | #9114. Black or White 2 | ZhangYiDe | Compile Error | / | / | C++14 | 21.6kb | 2024-07-19 22:15:43 | 2024-07-19 22:15:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:100:57: warning: division by zero [-Wdiv-by-zero] 100 | if(cnt==2 && (n!=2 || m!=2)) cout<<1/0<<endl; | ~^~ answer.code:161:35: warning: division by zero [-Wdiv-by-zero] 161 | if(cnt==2) cout<<1/0<<endl; | ~^~ answer.code: At global scope: answer.code:173:11: error: redefinition of ‘const int MAXN’ 173 | const int MAXN=1500+5; | ^~~~ answer.code:6:11: note: ‘const int MAXN’ previously defined here 6 | const int MAXN=1500+5; | ^~~~ answer.code:174:11: error: redefinition of ‘const int MAXM’ 174 | const int MAXM=1500+5; | ^~~~ answer.code:7:11: note: ‘const int MAXM’ previously defined here 7 | const int MAXM=1500+5; | ^~~~ answer.code:176:5: error: redefinition of ‘int n’ 176 | int n,m,k; | ^ answer.code:9:5: note: ‘int n’ previously declared here 9 | int n,m,k; | ^ answer.code:176:7: error: redefinition of ‘int m’ 176 | int n,m,k; | ^ answer.code:9:7: note: ‘int m’ previously declared here 9 | int n,m,k; | ^ answer.code:176:9: error: redefinition of ‘int k’ 176 | int n,m,k; | ^ answer.code:9:9: note: ‘int k’ previously declared here 9 | int n,m,k; | ^ answer.code:177:6: error: redefinition of ‘bool t [1505][1505]’ 177 | bool t[MAXN][MAXM]; | ^ answer.code:10:6: note: ‘bool t [1505][1505]’ previously declared here 10 | bool t[MAXN][MAXM]; | ^ answer.code:178:6: error: redefinition of ‘bool w’ 178 | bool w,b; | ^ answer.code:11:6: note: ‘bool w’ previously declared here 11 | bool w,b; | ^ answer.code:178:8: error: redefinition of ‘bool b’ 178 | bool w,b; | ^ answer.code:11:8: note: ‘bool b’ previously declared here 11 | bool w,b; | ^ answer.code:179:6: error: redefinition of ‘bool c [1505][1505]’ 179 | bool c[MAXN][MAXN]; | ^ answer.code:12:6: note: ‘bool c [1505][1505]’ previously declared here 12 | bool c[MAXN][MAXN]; | ^ answer.code:181:6: error: redefinition of ‘void clr(int)’ 181 | void clr(int x) | ^~~ answer.code:14:6: note: ‘void clr(int)’ previously defined here 14 | void clr(int x) | ^~~ answer.code:189:6: error: redefinition of ‘void print()’ 189 | void print() | ^~~~~ answer.code:22:6: note: ‘void print()’ previously defined here 22 | void print() | ^~~~~ answer.code:199:6: error: redefinition of ‘void init()’ 199 | void init() | ^~~~ answer.code:32:6: note: ‘void init()’ previously defined here 32 | void init() | ^~~~ answer.code:205:5: error: redefinition of ‘int main()’ 205 | int main() | ^~~~ answer.code:38:5: note: ‘int main()’ previously defined here 38 | int main() | ^~~~ answer.code: In function ‘int main()’: answer.code:267:57: warning: division by zero [-Wdiv-by-zero] 267 | if(cnt==2 && (n!=2 || m!=2)) cout<<1/0<<endl; | ~^~ answer.code:328:35: warning: division by zero [-Wdiv-by-zero] 328 | if(cnt==2) cout<<1/0<<endl; | ~^~ answer.code: At global scope: answer.code:340:11: error: redefinition of ‘const int MAXN’ 340 | const int MAXN=1500+5; | ^~~~ answer.code:6:11: note: ‘const int MAXN’ previously defined here 6 | const int MAXN=1500+5; | ^~~~ answer.code:341:11: error: redefinition of ‘const int MAXM’ 341 | const int MAXM=1500+5; | ^~~~ answer.code:7:11: note: ‘const int MAXM’ previously defined here 7 | const int MAXM=1500+5; | ^~~~ answer.code:343:5: error: redefinition of ‘int n’ 343 | int n,m,k; | ^ answer.code:9:5: note: ‘int n’ previously declared here 9 | int n,m,k; | ^ answer.code:343:7: error: redefinition of ‘int m’ 343 | int n,m,k; | ^ answer.code:9:7: note: ‘int m’ previously declared here 9 | int n,m,k; | ^ answer.code:343:9: error: redefinition of ‘int k’ 343 | int n,m,k; | ^ answer.code:9:9: note: ‘int k’ previously declared here 9 | int n,m,k; | ^ answer.code:344:6: error: redefinition of ‘bool t [1505][1505]’ 344 | bool t[MAXN][MAXM]; | ^ answer.code:10:6: note: ‘bool t [1505][1505]’ previously declared here 10 | bool t[MAXN][MAXM]; | ^ answer.code:345:6: error: redefinition of ‘bool w’ 345 | bool w,b; | ^ answer.code:11:6: note: ‘bool w’ previously declared here 11 | bool w,b; | ^ answer.code:345:8: error: redefinition of ‘bool b’ 345 | bool w,b; | ^ answer.code:11:8: note: ‘bool b’ previously declared here 11 | bool w,b; | ...