よじろめ覚書

私の理解度重視のソースコードです。

ABC063A - Restricted

問題:A - Restricted

#include <iostream>
using namespace std;

int main(void) {
    int a, b;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> a >> b;
    if (a + b >= 10) {
        cout << "error" << "\n";
    } else {
        cout << a + b << "\n";
    }

    return 0;
}