#include <iostream>
using namespace std;
int main()
{
for( int i=2, x=7 ; true ; i++ )
{
x = 7 * i;
if( x%2 == 1 && x%3 == 1 && x%4 == 1 && x%5 == 1 && x%6 == && x%7 == 0 )
{
cout << x << endl;
break;
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7Cglmb3IoIGludCBpPTIsIHg9NyA7IHRydWUgOyBpKysgKQoJewoJCXggPSA3ICogaTsKCQlpZiggeCUyID09IDEgJiYgeCUzID09IDEgJiYgeCU0ID09IDEgJiYgeCU1ID09IDEgJiYgeCU2ID09ICYmIHglNyA9PSAwICkKCQl7CgkJCWNvdXQgPDwgeCA8PCBlbmRsOwoJCQlicmVhazsKCQl9Cgl9CgkKCXJldHVybiAwOwp9
prog.cpp: In function ‘int main()’:
prog.cpp:9:67: error: invalid operands of types ‘void*’ and ‘int’ to binary ‘operator%’
if( x%2 == 1 && x%3 == 1 && x%4 == 1 && x%5 == 1 && x%6 == && x%7 == 0 )
^
prog.cpp:9:65: error: label ‘x’ used but not defined
if( x%2 == 1 && x%3 == 1 && x%4 == 1 && x%5 == 1 && x%6 == && x%7 == 0 )
^