Submission #168138

#TimeUsernameProblemLanguageResultExecution timeMemory
168138mat_vBali Sculptures (APIO15_sculpture)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define maxn 2005 #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i)) #define inf 1LLe15 using namespace std; typedef long long ll; ll niz[maxn]; ll dp[maxn][maxn]; int n; ll pref[maxn]; ll a,b; int main() { ios_base::sync_with_stdio(false); cin >> n >> a >> b; for(int i=1; i<=n; i++)cin >> niz[i]; pref[0] = 0; for(int i=1; i<=n; i++)pref[i] = pref[i - 1] + niz[i]; //if(1){ for(int i=1;i <=n; i++){ dp[0][i] = inf; } for(int i=1; i<=n; i++){ dp[i][0] = inf; } dp[0][0] = 0; for(int i=1; i<=n; i++){ for(int j=1; j<=b; j++){ dp[i][j] = inf; if(j > i)continue; for(int k=0; k<=i - 1; k++){ dp[i][j] = min((dp[k][j - 1] | (pref[i] - pref[k])), dp[i][j]); } } } ll mini = dp[n][a]; for(int i=a; i<=b; i++)mini = min(mini, dp[n][i]); cout << mini << endl; return 0; //} return 0; }

Compilation message (stderr)

sculpture.cpp: In function 'int main()':
sculpture.cpp:4:13: error: unable to find numeric literal operator 'operator""LLe15'
 #define inf 1LLe15
             ^
sculpture.cpp:21:24: note: in expansion of macro 'inf'
             dp[0][i] = inf;
                        ^~~
sculpture.cpp:4:13: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define inf 1LLe15
             ^
sculpture.cpp:21:24: note: in expansion of macro 'inf'
             dp[0][i] = inf;
                        ^~~
sculpture.cpp:4:13: error: unable to find numeric literal operator 'operator""LLe15'
 #define inf 1LLe15
             ^
sculpture.cpp:24:24: note: in expansion of macro 'inf'
             dp[i][0] = inf;
                        ^~~
sculpture.cpp:4:13: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define inf 1LLe15
             ^
sculpture.cpp:24:24: note: in expansion of macro 'inf'
             dp[i][0] = inf;
                        ^~~
sculpture.cpp:4:13: error: unable to find numeric literal operator 'operator""LLe15'
 #define inf 1LLe15
             ^
sculpture.cpp:29:28: note: in expansion of macro 'inf'
                 dp[i][j] = inf;
                            ^~~
sculpture.cpp:4:13: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define inf 1LLe15
             ^
sculpture.cpp:29:28: note: in expansion of macro 'inf'
                 dp[i][j] = inf;
                            ^~~