QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#605377#9354. Justifying the ConjectureTheliser#Compile Error//C++20470b2024-10-02 16:54:502024-10-02 16:54:51

Judging History

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

  • [2024-10-02 16:54:51]
  • 评测
  • [2024-10-02 16:54:50]
  • 提交

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;
      |             ^~~~~~