Borderou de evaluare (job #2618609)
Utilizator | Data | 25 mai 2020 16:08:11 | |
---|---|---|---|
Problema | Cli | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:1: error: 'vector' does not name a type
vector < int > dp[NMAX];
^~~~~~
main.cpp: In function 'void Initialize(int, int)':
main.cpp:51:9: error: 'dp' was not declared in this scope
dp[i].resize(K + 1);
^~
main.cpp: In function 'void Brute()':
main.cpp:114:17: error: 'dp' was not declared in this scope
dp[i][j] = min(dp[i][j], dp[Last][j - 1] + 2 * ((int)A[i].size() - Query(Last, i - 1)));
^~
main.cpp: In function 'void Efficient()':
main.cpp:130:24: error: 'dp' was not declared in this scope
Now.Best = dp[i - 1][j - 1];
^~
main.cpp: In function 'void Solve()':
main.cpp:159:9: error: 'dp' was not declared in this scope
dp[i][1] = 2 * (int)A[i].size();
^~
main.cpp: In function 'void Write()':
main.cpp:174:26: error: 'dp' was not declared in this scope
ans[j] = dp[i][j];
^~
main.cpp:176:38: error: 'dp' was not declared in this scope
ans[j] = min(ans[j], dp[i][j]);
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !