I am getting a compilation error while submitting horrible queries on SPOJ. When I run the code locally, there is no issue and I am getting correct output for the cases I've tried. Someone please take a look at my code and tell me why I am getting a compilation error. Here is my code,
You're getting error because the queries are horrible. The program knows it will receive a set of horrible queries, so it won't compile. It's self-defense.
Well this did make me laugh. But it would be helpful if you could solve my issue too. :p
If your code compiles OK locally, are you sure you're selecting the correct compiler when submitting?
Well thank you, I wasted 2 hours only to realise, it compiles fine on C++6.3 and not on C++ 4.3.2. It got accepted now. :)