Submission #892433

#TimeUsernameProblemLanguageResultExecution timeMemory
892433I_FloPPed21Bank (IZhO14_bank)C++14
Compilation error
0 ms0 KiB
for ( int d = 0 ; d < posixor [ i ] .size() ; d ++ ) { long long j = posixor [ i ][ d ] ; if ( dp [ i - 1 ] [ j ] == true ) { for (int k = 0 ; k < posib [ i ] .size() ; k ++ ) { if ( (( j ) & ( posib [ i ][ k ] )) == 0 ) { int val = (posib [ i ][ k ] | ( j )); posixor [ i + 1] .push_back(val); dp [ i ] [ val ] = true ; if ( i == n ) { cout << "YES" << '\n'; return 0 ; } } } }

Compilation message (stderr)

bank.cpp:1:2: error: expected unqualified-id before 'for'
    1 |  for ( int d = 0 ; d < posixor [ i ] .size() ; d ++ )
      |  ^~~
bank.cpp:1:20: error: 'd' does not name a type
    1 |  for ( int d = 0 ; d < posixor [ i ] .size() ; d ++ )
      |                    ^
bank.cpp:1:48: error: 'd' does not name a type
    1 |  for ( int d = 0 ; d < posixor [ i ] .size() ; d ++ )
      |                                                ^