Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2059 Pin
Victor Nijegorodov21-Aug-19 2:08
Victor Nijegorodov21-Aug-19 2:08 
GeneralRe: error C2059 Pin
Victor Nijegorodov21-Aug-19 2:17
Victor Nijegorodov21-Aug-19 2:17 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 2:38
_Flaviu21-Aug-19 2:38 
GeneralRe: error C2059 Pin
Richard MacCutchan21-Aug-19 3:59
mveRichard MacCutchan21-Aug-19 3:59 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 20:50
_Flaviu21-Aug-19 20:50 
GeneralRe: error C2059 Pin
Stefan_Lang21-Aug-19 5:24
Stefan_Lang21-Aug-19 5:24 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 21:45
_Flaviu21-Aug-19 21:45 
GeneralRe: error C2059 Pin
Stefan_Lang21-Aug-19 21:51
Stefan_Lang21-Aug-19 21:51 
GeneralRe: error C2059 Pin
_Flaviu21-Aug-19 23:53
_Flaviu21-Aug-19 23:53 
AnswerRe: error C2059 Pin
Stefan_Lang21-Aug-19 3:08
Stefan_Lang21-Aug-19 3:08 
QuestionC++ Program to decompress a compressed string Pin
antoniu20016-Aug-19 6:19
antoniu20016-Aug-19 6:19 
AnswerRe: C++ Program to decompress a compressed string Pin
Richard MacCutchan17-Aug-19 1:19
mveRichard MacCutchan17-Aug-19 1:19 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20017-Aug-19 1:39
antoniu20017-Aug-19 1:39 
GeneralRe: C++ Program to decompress a compressed string Pin
Richard MacCutchan17-Aug-19 3:02
mveRichard MacCutchan17-Aug-19 3:02 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20017-Aug-19 3:12
antoniu20017-Aug-19 3:12 
GeneralRe: C++ Program to decompress a compressed string Pin
Richard MacCutchan17-Aug-19 3:22
mveRichard MacCutchan17-Aug-19 3:22 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20017-Aug-19 3:24
antoniu20017-Aug-19 3:24 
GeneralRe: C++ Program to decompress a compressed string Pin
Richard MacCutchan17-Aug-19 3:59
mveRichard MacCutchan17-Aug-19 3:59 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20017-Aug-19 4:02
antoniu20017-Aug-19 4:02 
GeneralRe: C++ Program to decompress a compressed string Pin
Richard MacCutchan17-Aug-19 4:19
mveRichard MacCutchan17-Aug-19 4:19 
GeneralRe: C++ Program to decompress a compressed string Pin
David Crow19-Aug-19 4:49
David Crow19-Aug-19 4:49 
AnswerRe: C++ Program to decompress a compressed string Pin
Patrice T17-Aug-19 19:16
mvePatrice T17-Aug-19 19:16 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20018-Aug-19 2:42
antoniu20018-Aug-19 2:42 
AnswerRe: C++ Program to decompress a compressed string Pin
Randor 18-Aug-19 12:49
professional Randor 18-Aug-19 12:49 
Hi,

I can make the following inference by reading this rule of your challenge.
antoniu200 wrote:
Memory limit: 64 MB (global) / 8 MB(local)

In Microsoft Windows the default stack size is 1MB but on the Linux operating system the default stack size is 8MB so I can infer that your challenge will most likely be tested on a Linux box and will be tested for stack overflow.

Looks like your code will fail the 64MB memory condition first. You should be able to easily test this by simply fuzzing the program input:

999[a999[c]]999[x999[y]]

On a second glance I don't see where you are validating the input string to follow this rule:

antoniu200 wrote:
the string S will contain only lowercase letters of the English alphabet


Looks like you need to validate that your input is alphanumeric.

Actually... now that I've read your code a third time I believe you will fail each and every rule in the Restrictions and clarifications section on very large inputs.

Best Wishes,
-David Delaune
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20018-Aug-19 23:05
antoniu20018-Aug-19 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.