Submission #771489

#TimeUsernameProblemLanguageResultExecution timeMemory
771489Blistering_BarnaclesNecklace (Subtask 1-3) (BOI19_necklace1)C++11
Compilation error
0 ms0 KiB
//Billions of bilious blue blistering barnacles in a thundering typhoon! #ifndef LOCAL #pragma GCC optimize("Ofast,fast-math,unroll-loops") #pragma GCC target("avx2,fma") #endif #include<bits/stdc++.h> #define fast ios::sync_with_stdio(0) , cin.tie(0) #define F first #define S second #define pb push_back #define vll vector< ll > #define vi vector< int > #define pll pair< ll , ll > #define pi pair< int , int > #define all(s) s.begin() , s.end() #define sz(s) s.size() #define str string #define md ((s + e) / 2) #define mid ((l + r) / 2) #define msdp(dp) memset(dp , -1 , sizeof dp) #define mscl(dp) memset(dp , 0 , sizeof dp) #define C continue #define R return #define B break #define lx node * 2 #define rx node * 2 + 1 #define br(dosomething) {dosomething; break;} #define co(dosomething) {dosomething ; continue;} using namespace std; typedef int ll; str s , t ; ll Lss[2][3005] , Lsp1[2][3005] , Lsp2[3005][2] , Lps1[2][3005] , Lsp2[3005][2] ; void solve(){ cin >> s >> t ; } int main(){ fast ; solve() ; }

Compilation message (stderr)

necklace.cpp:32:67: error: redefinition of 'll Lsp2 [3005][2]'
   32 | ll Lss[2][3005] , Lsp1[2][3005] , Lsp2[3005][2] , Lps1[2][3005] , Lsp2[3005][2] ;
      |                                                                   ^~~~
necklace.cpp:32:35: note: 'll Lsp2 [3005][2]' previously declared here
   32 | ll Lss[2][3005] , Lsp1[2][3005] , Lsp2[3005][2] , Lps1[2][3005] , Lsp2[3005][2] ;
      |                                   ^~~~