QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#771212#6761. ChuanpaiboringhackerCompile Error//C++23269b2024-11-22 10:52:082024-11-22 10:52:08

Judging History

你现在查看的是最新测评结果

  • [2024-11-22 10:52:08]
  • 评测
  • [2024-11-22 10:52:08]
  • 提交

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