ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

c++ compiler
Posted by Pavel Tolstikov 28 Mar 2005 21:50
I get errors when I use expressions in square brakets.

For example I have such operator:
p[tmp-1]=i;
Two times I got Crash (ACCESS_VIOLATION) and once I got TLE.

Today I change this operator to:
--tmp;p[tmp]=1;
and i get AC!!!
I didn't changed anything else! Variable tmp is no more used.

What's wrong with C++ compiler (or maybe with me)?
Which compiler is used?