Borderou de evaluare (job #2878528)
Utilizator | Data | 27 martie 2022 04:05:24 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:18: error: 'vector' has not been declared
10 | int SCMAX(int n, vector<int> v) {
| ^~~~~~
main.cpp:10:24: error: expected ',' or '...' before '<' token
10 | int SCMAX(int n, vector<int> v) {
| ^
main.cpp: In function 'int SCMAX(int, int)':
main.cpp:11:5: error: 'vector' was not declared in this scope
11 | vector<int> dp(n);
| ^~~~~~
main.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include <fstream>
+++ |+#include <vector>
4 |
main.cpp:11:12: error: expected primary-expression before 'int'
11 | vector<int> dp(n);
| ^~~
main.cpp:12:5: error: 'dp' was not declared in this scope
12 | dp[0] = 1;
| ^~
main.cpp:17:17: error: 'v' was not declared in this scope
17 | if (v[i] > v[j]) {
| ^
main.cpp: In function 'int main()':
main.cpp:50:22: error: invalid conversion from 'int*' to 'int' [-fpermissive]
50 | cout << SCMAX(n, v) << endl;
| ^
| |
| int*
main.cpp:10:18: note: initializing argument 2 of 'int SCMAX(int, int)'
10 | int SCMAX(int n, vector<int> v) {
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !