Borderou de evaluare (job #2909357)
Utilizator | Data | 13 iunie 2022 01:42:40 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Solve(int, int*)':
main.cpp:26:8: error: 'dp' was not declared in this scope
26 | if(dp[i] < dp[j] + 1)
| ^~
main.cpp:29:6: error: 't' was not declared in this scope
29 | t[i] = j;
| ^
main.cpp:33:12: error: 'dp' was not declared in this scope
33 | if(sol < dp[i])
| ^~
main.cpp:45:13: error: 't' was not declared in this scope
45 | i = t[i];
| ^
main.cpp: In function 'int main()':
main.cpp:52:28: warning: unused variable 'dp' [-Wunused-variable]
52 | int a[NR_OF_ELEMENTS], dp[NR_OF_ELEMENTS],t[NR_OF_ELEMENTS], n;
| ^~
main.cpp:52:47: warning: unused variable 't' [-Wunused-variable]
52 | int a[NR_OF_ELEMENTS], dp[NR_OF_ELEMENTS],t[NR_OF_ELEMENTS], n;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !