fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int q = 1;
  7. q=(2;);
  8. return 0;
  9. }
Compilation error #stdin compilation error #stdout 0s 4476KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:6: error: expected ‘)’ before ‘;’ token
  q=(2;);
    ~ ^
      )
prog.cpp:7:7: error: expected primary-expression before ‘)’ token
  q=(2;);
       ^
stdout
Standard output is empty