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 1469. No Smoking!

Interesting
Posted by Alex_SyktSU 24 Sep 2006 14:44
Interesting to now, why when I write like this:
     int map[50001][4];
    int N;
    cin >> N;
    for (int i=0; i<N; i++)
    {
        scanf("%d %d %d %d", &map[i][0], &map[i][1], &map[i][2], &map[i][3]); ...
I got wa2
 and when I write like this:

    for (int i=0; i<N; i++)
    {
        cin >> map[i][0] >> map[i][1] >> map[i][2] >> map[i][3];..
 I succesfully pass second test
?
Re: Interesting
Posted by Marko Tintor 10 Oct 2006 02:33
don't mix cin and scanf!