Ad
  • Default User Avatar

    The question is removed - my mistake.

  • Default User Avatar

    I'm try to solve in C.

    The test #16. Is it coorect value in test?

    Expected 3654, got 3554
    
  • Default User Avatar

    Sorry, my mistake.

     static int *A;
     A = (int *) malloc (2);
     ...
     return A;
    
  • Default User Avatar

    @g964 could you check please

  • Default User Avatar

    If I just comment out:

    ...
    //free(act); act = NULL;
    ...
    

    and all tests passed.

    I think (probably) thete is some issue in tests code...

  • Default User Avatar

    I passed 1 test and after I always get error:

    *** Error in `/home/codewarrior/solution': munmap_chunk(): invalid pointer: 0x00000000006021b4 ***
    
  • Default User Avatar

    OR it to be have to note in description: ...whithout zeros before octet...

  • Default User Avatar

    123.045.067.089 is valid. Try to $ whois 123.045.067.089 and yo will get:

    ....
    etRange:       123.0.0.0 - 123.255.255.255
    CIDR:           123.0.0.0/8
    NetName:        APNIC-123
    NetHandle:      NET-123-0-0-0-1
    Parent:          ()
    NetType:        Allocated to APNIC
    OriginAS:
    Organization:   Asia Pacific Network Information Centre (APNIC)
    ...