QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#772957 | #1795. Beer Can Game | I_be_wanna | Compile Error | / | / | C++17 | 203b | 2024-11-22 23:10:20 | 2024-11-22 23:10:25 |
Judging History
answer
#include<iostream>
using namespace std;
int main(){
char n[93838989];
int l;
for(int i=0;i<93838989;i++){
cin>>n[i];
}
if(n[i]=='a'){
l=4;
}else{
l=0;
}
cout<<l;
return 0;
}
Details
answer.code: In function ‘int main()’: answer.code:9:14: error: ‘i’ was not declared in this scope 9 | if(n[i]=='a'){ | ^