expgorl.cpp: In function 'int main()':
expgorl.cpp:22:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0;k<s.size();k++){
~^~~~~~~~~
expgorl.cpp:29:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(s[k]=='B')
^~
expgorl.cpp:31:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
dis();
^~~
expgorl.cpp:14:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("expgorl.in","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
expgorl.cpp:15:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("expgorl.out","w",stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~