| 13284 | 2025-01-07 12:15:58 | MezeiDavid | Oszthatóság 17-tel (60 pont) | cpp17 | Forditási hiba |
#include <iostream>
using namespace std;
bool Rush_E(int n){
if(n / 10- (n%10) *5){
return false;
}else{
return true;
}
}
int main()
{
int szam;
cin >> szam;
while(Rush_E(szam)){
n =n / 10- (n%10) *5;
cout << n;
}
return 0;
}
open /var/local/lib/isolate/417/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:16:9: error: 'n' was not declared in this scope
16 | n =n / 10- (n%10) *5;
| ^