QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#506998#9162. COVID testshyforcesCompile Error//C++203.0kb2024-08-06 06:47:162024-08-06 06:47:16

Details

answer.code: In function ‘std::vector<bool> find_positive()’:
answer.code:78:52: error: ‘p’ was not declared in this scope
   78 |     if(fabs(block-0.104571)<0.00001)block=int(0.75/p);
      |                                                    ^
answer.code: In function ‘bool test_students(std::vector<bool>)’:
answer.code:27:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   27 |     scanf(" %c", &answer);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:89:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   89 |     scanf("%d %lf %d", &n, &P, &T);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:117:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  117 |         scanf(" %c", &verdict);
      |         ~~~~~^~~~~~~~~~~~~~~~~