Submission #206890

#TimeUsernameProblemLanguageResultExecution timeMemory
206890tunaSplit the sequence (APIO14_sequence)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair <int, int> ii; const int N = 1e5 + 5, oo = 1e18, K = 200; int a[N], suf[N], pref[N], n, dp[2][N], trace[N][K]; struct Line { int a, b, id; Line() {} Line(int _a, int _b, int _id) : a(_a), b(_b), id(_id) {} int val(int x) { return a * x + b; } }; struct CHT { vector <Line> st; CHT() {st.clear();} bool bad(Line a, Line b, Line c) { @@@ Type :qa and press <Enter> to exit Vim 15,7-21 Top

Compilation message (stderr)

sequence.cpp:23:1: error: stray '@' in program
 @@@                                                                             
 ^
sequence.cpp:23:2: error: stray '@' in program
 @@@                                                                             
  ^
sequence.cpp:23:3: error: stray '@' in program
 @@@                                                                             
   ^
sequence.cpp:24:77: error: expected '}' at end of input
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
                                                                             ^~~
sequence.cpp: In member function 'bool CHT::bad(Line, Line, Line)':
sequence.cpp:24:8: error: 'qa' was not declared in this scope
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
        ^~
sequence.cpp:24:8: note: suggested alternative: 'a'
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
        ^~
        a
sequence.cpp:24:16: error: 'press' was not declared in this scope
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
                ^~~~~
sequence.cpp:24:16: note: suggested alternative: 'pref'
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
                ^~~~~
                pref
sequence.cpp:24:23: error: 'Enter' was not declared in this scope
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
                       ^~~~~
sequence.cpp:24:30: error: 'to' was not declared in this scope
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
                              ^~
sequence.cpp:24:30: note: suggested alternative: 'oo'
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
                              ^~
                              oo
sequence.cpp:24:77: error: expected '}' at end of input
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
                                                                             ^~~
sequence.cpp:24:1: warning: label 'Type' defined but not used [-Wunused-label]
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
 ^~~~
sequence.cpp:24:77: warning: no return statement in function returning non-void [-Wreturn-type]
 Type  :qa  and press <Enter> to exit Vim                      15,7-21       Top
                                                                             ^~~
sequence.cpp: At global scope:
sequence.cpp:24:77: error: expected unqualified-id at end of input