fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int dney, god;
  7. cin >> god;
  8. dney = 365;
  9. if(god % 4 == 0 && god % 100 != 0 || god % 400 == 0 ) dney = dney + 1
  10. else cout << dney << endl
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:10:2: error: expected ';' before 'else'
  else cout << dney << endl
  ^
stdout
Standard output is empty