LangProc / langproc-2018-cw

5 stars 4 forks source link

switch1_driver.c #51

Closed lhl2617 closed 5 years ago

lhl2617 commented 5 years ago

In switch1_driver.c, Instead of


int g();

int main()
{
    int x;
    return !((g(0)+g(1))==21);
}

did you mean


int g(int x /* missing arg */);

int main()
{
    int x;
    return !((g(1)+g(2))==21); /* wrong args */
}
johnwickerson commented 5 years ago

Thank you for pointing this out. I will fix the testcase.