QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#818505 | #9670. GG and YY’s Stone Game | wcyQwQ | Compile Error | / | / | C++14 | 531b | 2024-12-17 21:14:28 | 2024-12-17 21:14:29 |
Judging History
answer
#include <bits/stdc++.h>
#define L(i, j, k) for (int i = (j); i <= (k); i++)
#define R(i, j, k) for (int i = (j); i >= (k); i--)
#define all(x) x.begin(), x.end()
#define eb emplace_back
using namespace std;
using LL = long long;
namespace FloatingMoon {
void main() {
int T;
cin >> T;
while (T--) {
LL n;
cin >> n;
cout << !!(n % 3) << ' ' (n % 3 == 0 ? 1 : n % 3) << '\n';
}
}
}
int main() {
cin.tie(0)->sync_with_stdio(0);
FloatingMoon::main();
return 0;
}
详细
answer.code: In function ‘void FloatingMoon::main()’: answer.code:17:32: error: expression cannot be used as a function 17 | cout << !!(n % 3) << ' ' (n % 3 == 0 ? 1 : n % 3) << '\n'; | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~