fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, const aVotHui = 5;
  6. std::cout << "A vot huy: " << aVotHui << std::endl;
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 3140KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:5:9: error: expected unqualified-id before 'const'
  int a, const aVotHui = 5;
         ^
prog.cpp:6:32: error: 'aVotHui' was not declared in this scope
  std::cout << "A vot huy: " << aVotHui << std::endl;
                                ^
stdout
Standard output is empty