| 13332 | 2025-01-07 15:40:38 | PKB | Oszthatóság 17-tel (60 pont) | cpp17 | Compilation error |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int szam;
cin >> szam;
vector<int> szamok;
if (szam % 17 == 0) {
cout << "IGEN\n";
if (szam == 51) {
cout << "0";
return 0;v
}
} else {
cout << "NEM\n";
if (szam == 27) {
return 0;
}
}
while (szam > 0) {
szam = szam / 10 - (szam % 10)*5;
if (szam > 0) {
cout << szam << " ";
}
}
}
open /var/local/lib/isolate/406/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:16:22: error: 'v' was not declared in this scope
16 | return 0;v
| ^