Submission #3284628
Source Code Expand
#include<bits/stdc++.h> using namespace std; char s; int n,bns,ans; int main(){ for (int i=1;i<=n;i++){ cin>>s; if (x=='X') bns++; else{ ans+=bns/3; 0bns=0; } } cout<<ans<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 雨上がり |
User | luogu_bot5 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 261 Byte |
Status | CE |
Compile Error
./Main.cpp:11:13: error: invalid suffix "bns" on integer constant 0bns=0; ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:8:13: error: ‘x’ was not declared in this scope if (x=='X') bns++; ^