ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1230. Introspective Program

plz help!!!!!!!!!!!!
Posted by Igor Mihajlovic 26 Jul 2008 23:11
this is my c++ program and i dont know why i get WA

#include <iostream.h>


main()
{

cout<<"D='\"';J=\"'\";S=\"D=\"+J+D+J+\";J=\"+D+J+D+\";S=?$(S,1,14);?D;?'D=';?D;?'+';?'J';?'+';?'D';?'+';?'J';?'+';?D;?';J=';?D;?'+';?'D';?'+';?'J';?'+';?'D';?'+';?D;?$(S,12,146);?D;?";";?$(S,15,143);\";?$(S,1,14);?D;?'D=';?D;?'+';?'J';?'+';?'D';?'+';?'J';?'+';?D;?';J=';?D;?'+';?'D';?'+';?'J';?'+';?'D';?'+';?D;?$(S,12,146);?D;?";";?$(S,15,143);";

}
Re: plz help!!!!!!!!!!!!
Posted by AterLux 5 May 2011 20:24
better write PIBAS code only.

try to write PIBAS interpreter, it will show your error at once.

in your PIBAS code (thats begins after cout<<" and when \" replaced with ") at position 170 unexpected "  there are doubled ";
...?D;?";";?$(S,15,143);...
      ^^^^^ here
you shall replace one of quotes with some other simbol