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

Discussion of Problem 1510. Order

Bug or something i can't understand
Posted by Alex_SyktSU 6 Nov 2006 02:10
Code with this:
    for (int i=0; i<n; i++)
    {
        int t;
        scanf("%li", &t);
    ...
gives wa1

Code with this:
    for (int i=0; i<n; i++)
    {
        int t;
        cin >> t;
    ...
gives tl36.
 Help, please, if know what is the problem
Re: Bug or something i can't understand
Posted by Anton [SUrSU] 6 Nov 2006 14:01
Use scanf("%d", &t). There is 32bit compilers.
Re: Bug or something i can't understand
Posted by Alex_SyktSU 6 Nov 2006 19:24
Tried, result is exactly the same: wa1