fork download
  1. #include <iostream>
  2. using namespace std;
  3. using::cout;
  4. using::cin;
  5.  
  6. int main()
  7. {
  8. setlocale(0, "");
  9. int a;
  10. cout << "Vvedi 15";
  11. cin >> a;
  12. if (a < 15) {
  13. cout << "Verno" ;
  14. }
  15. else (a > 10) {
  16. cout << "Ne verno" ;
  17. }
  18. }
  19. return 0;
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:15:16: error: expected ‘;’ before ‘{’ token
  else (a > 10) {
                ^
prog.cpp: At global scope:
prog.cpp:19:2: error: expected unqualified-id before ‘return’
  return 0;
  ^~~~~~
prog.cpp:20:1: error: expected declaration before ‘}’ token
 }
 ^
stdout
Standard output is empty