QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#500345#9162. COVID testshyforces#Compile Error//C++202.8kb2024-08-01 09:55:392024-08-01 09:55:39

Details

answer.code: In function ‘std::vector<bool> find_positive()’:
answer.code:75:17: error: ‘block’ was not declared in this scope; did you mean ‘std::filesystem::file_type::block’?
   75 |                 block=n;
      |                 ^~~~~
      |                 std::filesystem::file_type::block
In file included from /usr/include/c++/13/filesystem:48,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:200,
                 from answer.code:1:
/usr/include/c++/13/bits/fs_fwd.h:80:7: note: ‘std::filesystem::file_type::block’ declared here
   80 |       block = 4, character = 5, fifo = 6, socket = 7, unknown = 8
      |       ^~~~~
answer.code:88:28: error: ‘block’ was not declared in this scope; did you mean ‘std::filesystem::file_type::block’?
   88 |         for(int l=0;l<n;l+=block)dnqno(l,min(l+block,n)-1,false,answer);
      |                            ^~~~~
      |                            std::filesystem::file_type::block
/usr/include/c++/13/bits/fs_fwd.h:80:7: note: ‘std::filesystem::file_type::block’ declared here
   80 |       block = 4, character = 5, fifo = 6, socket = 7, unknown = 8
      |       ^~~~~
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:94:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   94 |     scanf("%d %lf %d", &n, &P, &T);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:110:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  110 |         scanf(" %c", &verdict);
      |         ~~~~~^~~~~~~~~~~~~~~~~