30372023-02-08 19:50:26xxxOszthatóság 17-tel (60 pont)cpp11Forditási hiba
#include <bits/stdc++.h>
using namespace std;

#define int long long
signed main() {
    int n, nelozo;
    cin >> n;
    neredeti = n;
    vector<int> a;
    while (n > 0) {
        nelozo = n;
        n /= 10;
        n -= (nelozo % 10) * 5;
        a.push_back(n);
    }

    if (a[a.size()-1] % 17 == 0)
        cout << "IGEN" << endl;
    else cout << "NEM" << endl;

    for (int i = 0; i < a.size(); i++)
        if (a[i] >= 0)
        cout << a[i] << " ";

	return 0;
}

Forditási hiba
exit status 1
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'neredeti' was not declared in this scope
    8 |     neredeti = n;
      |     ^~~~~~~~
Exited with error status 1