QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#500281#9162. COVID testshyforces#Compile Error//C++202.6kb2024-08-01 07:35:292024-08-01 07:35:29

Details

answer.code: In function ‘std::vector<bool> find_positive()’:
answer.code:76:19: error: ‘round’ was not declared in this scope
   76 |         int block=round(max(1.0,min(n+1.0,0.7/P)));
      |                   ^~~~~
answer.code: In function ‘bool test_students(std::vector<bool>)’:
answer.code:29:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   29 |     scanf(" %c", &answer);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:83:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   83 |     scanf("%d %lf %d", &n, &P, &T);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:99:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   99 |         scanf(" %c", &verdict);
      |         ~~~~~^~~~~~~~~~~~~~~~~