fork download
  1. long next[];
  2. for (int i=n-1; i>=0; i--) {
  3. long curr[];
  4. for (int x=0; x<32; x++) {
  5. curr[ A[i] ^ x ] = next[x];
  6. }
  7. curr[ A[i] ] ++;
  8. s += curr[0];
  9. next = curr;
  10. }
  11. output s;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1: error: storage size of ‘next’ isn't known
prog.cpp:2: error: expected unqualified-id before ‘for’
prog.cpp:2: error: expected constructor, destructor, or type conversion before ‘>=’ token
prog.cpp:2: error: expected constructor, destructor, or type conversion before ‘--’ token
stdout
Standard output is empty