fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main();
  5. {
  6. int p=1;
  7. for (int i=1; i<n; i+=2)
  8. {
  9. p=a[i]
  10. }
  11. // your code goes here
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:1: error: expected unqualified-id before '{' token
 {
 ^
stdout
Standard output is empty