QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#605377 | #9354. Justifying the Conjecture | Theliser# | Compile Error | / | / | C++20 | 470b | 2024-10-02 16:54:50 | 2024-10-02 16:54:51 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T;
cin >> T;
while (T --) {
int n;
cin >> n;
if (n <= 5) {
cout << -1 << '\n';
return;
}
if (n % 2 == 0) {
cout << 2 << ' ' << n - 2 << '\n';
} else {
cout << 3 << ' ' << n - 3 << '\n';
}
}
return 0;
}
Details
answer.code: In function ‘int main()’: answer.code:16:13: error: return-statement with no value, in function returning ‘int’ [-fpermissive] 16 | return; | ^~~~~~