QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#127078 | #6641. XOR Dice | shielder# | Compile Error | / | / | C++20 | 463b | 2023-07-19 12:50:43 | 2023-07-19 12:50:45 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-07-19 12:50:45]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-07-19 12:50:43]
- 提交
answer
#include <bits/stdc++.h>
using namespace std;
int a[10];
int main(){
// int t;cin>>t;
// while(t--){
int n;cin>>n;
int d;cin>>d;
a[1]=0;
a[2]=d;
a[3]=d*(1<<6);
a[4]=d*(1<<12);
a[5]=d*((1<<6)|(1<<12));
a[6]=d*(1<<6)+d;
// a[3]=d*(1<<6);
for(int i=1;i<=n;i++){
for(int j=1;j<=6;j++) cout<<a[j]<<" ";
cout<<endl;
}
// }
return 0;
}
Details
answer.code:5:1: error: extended character is not valid in an identifier 5 | // int t;cin>>t; | ^ answer.code:5:3: error: extended character is not valid in an identifier 5 | // int t;cin>>t; | ^ answer.code:6:1: error: extended character is not valid in an identifier 6 | // while(t--){ | ^ answer.code:6:3: error: extended character is not valid in an identifier 6 | // while(t--){ | ^ answer.code:7:1: error: extended character is not valid in an identifier 7 | int n;cin>>n; | ^ answer.code:7:3: error: extended character is not valid in an identifier 7 | int n;cin>>n; | ^ answer.code:8:1: error: extended character is not valid in an identifier 8 | int d;cin>>d; | ^ answer.code:8:3: error: extended character is not valid in an identifier 8 | int d;cin>>d; | ^ answer.code:9:1: error: extended character is not valid in an identifier 9 | a[1]=0; | ^ answer.code:9:3: error: extended character is not valid in an identifier 9 | a[1]=0; | ^ answer.code:10:1: error: extended character is not valid in an identifier 10 | a[2]=d; | ^ answer.code:10:3: error: extended character is not valid in an identifier 10 | a[2]=d; | ^ answer.code:11:1: error: extended character is not valid in an identifier 11 | a[3]=d*(1<<6); | ^ answer.code:11:3: error: extended character is not valid in an identifier 11 | a[3]=d*(1<<6); | ^ answer.code:12:1: error: extended character is not valid in an identifier 12 | a[4]=d*(1<<12); | ^ answer.code:12:3: error: extended character is not valid in an identifier 12 | a[4]=d*(1<<12); | ^ answer.code:13:1: error: extended character is not valid in an identifier 13 | a[5]=d*((1<<6)|(1<<12)); | ^ answer.code:13:3: error: extended character is not valid in an identifier 13 | a[5]=d*((1<<6)|(1<<12)); | ^ answer.code:14:1: error: extended character is not valid in an identifier 14 | a[6]=d*(1<<6)+d; | ^ answer.code:14:3: error: extended character is not valid in an identifier 14 | a[6]=d*(1<<6)+d; | ^ answer.code:15:1: error: extended character is not valid in an identifier 15 | // a[3]=d*(1<<6); | ^ answer.code:15:3: error: extended character is not valid in an identifier 15 | // a[3]=d*(1<<6); | ^ answer.code:16:1: error: extended character is not valid in an identifier 16 | for(int i=1;i<=n;i++){ | ^ answer.code:16:3: error: extended character is not valid in an identifier 16 | for(int i=1;i<=n;i++){ | ^ answer.code:17:1: error: extended character is not valid in an identifier 17 | for(int j=1;j<=6;j++) cout<<a[j]<<" "; | ^ answer.code:17:3: error: extended character is not valid in an identifier 17 | for(int j=1;j<=6;j++) cout<<a[j]<<" "; | ^ answer.code:17:5: error: extended character is not valid in an identifier 17 | for(int j=1;j<=6;j++) cout<<a[j]<<" "; | ^ answer.code:17:7: error: extended character is not valid in an identifier 17 | for(int j=1;j<=6;j++) cout<<a[j]<<" "; | ^ answer.code:18:1: error: extended character is not valid in an identifier 18 | cout<<endl; | ^ answer.code:18:3: error: extended character is not valid in an identifier 18 | cout<<endl; | ^ answer.code:18:5: error: extended character is not valid in an identifier 18 | cout<<endl; | ^ answer.code:18:7: error: extended character is not valid in an identifier 18 | cout<<endl; | ^ answer.code:19:1: error: extended character is not valid in an identifier 19 | } | ^ answer.code:19:3: error: extended character is not valid in an identifier 19 | } | ^ answer.code:20:1: error: extended character is not valid in an identifier 20 | // } | ^ answer.code:20:3: error: extended character is not valid in an identifier 20 | // } | ^ answer.code:21:1: error: extended character is not valid in an identifier 21 | return 0; | ^ answer.code:21:3: error: extended character is not valid in an identifier 21 | return 0; | ^ answer.code: In function ‘int main()’: answer.code:5:1: error: ‘ ’ was not declared in this scope 5 | // int t;cin>>t; | ^ answer.code:7:16: error: ‘n’ was not declared in this scope; did you mean ‘yn’? 7 | int n;cin>>n; | ^ | yn answer.code:8:2: error: expected ‘;’ before ‘ ’ 8 | int d;cin>>d; | ^~ | ; answer.code:8:16: error: ‘d’ was not declared in this scope 8 | int d;cin>>d; | ^ answer.code:9:2: error: expected ‘;’ before ‘ ’ 9 | a[1]=0; | ^~ ...