723 - Comment Removal

All about problems in Volume 7. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

stubbscroll
Experienced poster
Posts: 151
Joined: Tue Nov 16, 2004 7:23 pm
Location: Norway
Contact:

Re: 723 - Comment Removal_Clarification

Post by stubbscroll » Sat Jun 23, 2012 1:18 pm

My program outputs:

Code: Select all

begin;
myfunc  }
end;
Hope this helps.

TryCatchMe
New poster
Posts: 15
Joined: Fri May 30, 2014 12:09 am

Re: 723 - Comment Removal

Post by TryCatchMe » Wed Sep 02, 2015 11:23 am

Can someone PLEASE post more critical input? I get the same output as all of the above input and cannot figure out why WA. I get the same answers for all of the uDebug sample io as well. Thanks.

Also, can someone with AC confrm this...

input

Code: Select all

begin
var s := (*

 some
  
 long comment*) '
 
 a string literal
 
 on multiple
 
 lines after a comment';
 
end.

output:

Code: Select all

begin
var s :=  '
 
 a string literal
 
 on multiple
 
 lines after a comment';
end.
Note that there are 2 blanks between = and ' in the first line because comments are removed after multiple blanks are removed.

Post Reply

Return to “Volume 7 (700-799)”