Correctness and the Loop Invariant

  • + 0 comments

    what does this compile message mean?

    solution.cc: In function 'int main()': solution.cc:30:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^

    solution.cc:34:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&arr[i]); ^