fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. for( int i=2, x=7 ; true ; i++ )
  7. {
  8. x = 7 * i;
  9. if( x%2 == 1 && x%3 == 1 && x%4 == 1 && x%5 == 1 && x%6 == && x%7 == 0 )
  10. {
  11. cout << x << endl;
  12. break;
  13. }
  14. }
  15.  
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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 )
                                                                 ^
stdout
Standard output is empty