| 13299 | 2025-01-07 12:45:27 | MezeiDavid | Oszthatóság 17-tel (60 pont) | cpp17 | Compilation error |
#include <iostream>
using namespace std;
bool Rush_E(int n){
if(n / 10- ((n%10) *5) <0){
return false;
}else if(n / 10- ((n%10) *5) <0){
cout << 0;
return false;
}else{
return true;
}
}
int main()
{
int szam;
cin >> szam;
if(szam % 17 == 0){
cout << "IGEN" << endl;
}else {
cout <<"NEM" << endl;
}
while(Rush_E(szam)){
szam =szam / 10- (szam%10) *5;
cout << szam << " ";
}
if(m == n){
cout << endl;
}
return 0;
}
open /var/local/lib/isolate/405/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:28:8: error: 'm' was not declared in this scope; did you mean 'tm'?
28 | if(m == n){
| ^
| tm
main.cpp:28:13: error: 'n' was not declared in this scope
28 | if(m == n){
| ^