QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#500345 | #9162. COVID tests | hyforces# | Compile Error | / | / | C++20 | 2.8kb | 2024-08-01 09:55:39 | 2024-08-01 09:55:39 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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); | ~~~~~^~~~~~~~~~~~~~~~~