Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    tried it as well,
    dont know why i still get the error message:

    main.cpp:193:9: error: invalid operands to binary expression ('stringstream' (aka 'basic_stringstream') and 'X')
    out << X();
    ~~~ ^ ~~~
    /usr/include/c++/v1/ostream:191:20: note: candidate function not viable: no known conversion from 'X' to 'std::__1::basic_ostream &()(std::__1::basic_ostream &)' for 1st argument
    basic_ostream& operator<<(basic_ostream& (
    __pf)(basic_ostream&));

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    in c language, i pass all the test but last one crashes,

    i get this error code:
    "Test Crashed
    Exit code: 0
    Signal code: 6"

    what could i be doiing wrong?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Tests for 1 and 10 are successful, but test for 40 comes out wrong:
    right answer is 1.4788962720000001 , but got: 1.4235528840000000.

    any idea why can it be?

  • Custom User Avatar

    i corrected it to question

  • Custom User Avatar

    in C version:
    I don't understand the concept of return strdup, why not reurn a string?
    itoa is not working, how will u suggest inserting the count for each error to the output? (u 2....w 4... )
    why use '/r' and not use '\n'?

    Thanks

  • Custom User Avatar

    in c programming:

    1. how do i return an array if the function is void?
    2. in the examples the function takes as an argument a single array, when in the program i need to write i see that the function takes 3 arguments: const int weights[], int count, int teams[]. I don't understand it....
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    what's not clear to me in this ex. solution in C language:

    1. should i return a two dimentional array?
    2. should i return a one dimentional array (list)?
    3. should i return a string with all the curly parentheses included?
    4. should i print a string with all the curly parentheses included?

    I'm completely lost...