QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#771212 | #6761. Chuanpai | boringhacker | Compile Error | / | / | C++23 | 269b | 2024-11-22 10:52:08 | 2024-11-22 10:52:08 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(nullptr)->sync_with_stdio(0);
int t; cin >> t;
while (t--) {
int n;
cin >> n;
if (n >= 13 || n <= 1)
println("0");
else
println("{}", n / 2 - max(0, n - 6) / 2);
}
}
Details
answer.code: In function ‘int main()’: answer.code:12:25: error: ‘println’ was not declared in this scope; did you mean ‘rintl’? 12 | println("0"); | ^~~~~~~ | rintl answer.code:14:25: error: ‘println’ was not declared in this scope; did you mean ‘rintl’? 14 | println("{}", n / 2 - max(0, n - 6) / 2); | ^~~~~~~ | rintl