If I run the code from the forum, the compiler puts out these errors with the main function. At least in the code posted here, some things used in main have not been declared anywhere.
44:11: error: '::main' must return 'int'
In function 'int main()':
46:2: error: 's1' was not declared in this scope
47:2: error: 's2' was not declared in this scope
48:12: error: 'pop' was not declared in this scope
50:12: error: 'top' was not declared in this scope
Are you supposed to be building your own stack class with pop() and push() functions that call these queue functions you have in the code above? And s1 and s2 are stack objects you then declare in the main function?