Line 10, 38: You can not allocate an array this way. Array size must be known at compile time. It can not be a variable.
Line 10: This instance of seq is local to storeseq(). It goes out of scope when storeseq exits.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.