QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#500328#9162. COVID testshyforces#Compile Error//C++202.7kb2024-08-01 09:49:242024-08-01 09:49:26

Details

answer.code: In function ‘std::vector<bool> find_positive()’:
answer.code:75:21: error: ‘p’ was not declared in this scope
   75 |                 tp*=p;
      |                     ^
answer.code:80:20: error: ‘tp’ was not declared in this scope; did you mean ‘tm’?
   80 |         if(abs(0.5-tp/p)<abs(0.5-tp)&&block>1)--block;
      |                    ^~
      |                    tm
answer.code:80:23: error: ‘p’ was not declared in this scope
   80 |         if(abs(0.5-tp/p)<abs(0.5-tp)&&block>1)--block;
      |                       ^
answer.code: In function ‘bool test_students(std::vector<bool>)’:
answer.code:26:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 |     scanf(" %c", &answer);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:87:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   87 |     scanf("%d %lf %d", &n, &P, &T);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:103:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  103 |         scanf(" %c", &verdict);
      |         ~~~~~^~~~~~~~~~~~~~~~~