fork download
  1. #include <iostream> // директива препроцессора
  2. using namespace std; // директива using
  3.  
  4. int main()
  5. { //начало тела функции
  6. int numb;
  7. cout << "Введите число: " << endl; //переход на новую строку с помощью манипулятора endl
  8. cin >> numb; // ввод числа
  9. if ((numb >= 1) && (numb <=12)) //задаем условия в операторе if
  10. {
  11. cout << "Календарный месяц";
  12. }
  13. else {
  14. cout << "Не календарный месяц";
  15. }
  16.  
  17. return 0; //возвращаемое значение функции
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: '#'
#include <iostream>  // ????????? ?????????????
^
Main.java:1: error: class, interface, or enum expected
#include <iostream>  // ????????? ?????????????
         ^
Main.java:4: error: class, interface, or enum expected
int main() 
^
Main.java:7: error: class, interface, or enum expected
    cout << "??????? ?????: " << endl;  //??????? ?? ????? ?????? ? ??????? ???????????? endl
    ^
Main.java:8: error: class, interface, or enum expected
    cin >> numb;  // ???? ?????
    ^
Main.java:9: error: class, interface, or enum expected
        if ((numb >= 1) && (numb <=12)) //?????? ??????? ? ????????? if
        ^
Main.java:12: error: class, interface, or enum expected
        }
        ^
Main.java:15: error: class, interface, or enum expected
        }
        ^
Main.java:18: error: class, interface, or enum expected
}
^
9 errors
stdout
Standard output is empty