Problem potatosalad
User CastyLoz17
Submission Time 2024-02-28 22:04:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:11:14: error: ‘class std::vector<int>’ has no member named ‘start’
11 | sort(pot.start(),pot.end(),greatest<int>());
| ^~~~~
potatosalad.cpp:11:32: error: ‘greatest’ was not declared in this scope
11 | sort(pot.start(),pot.end(),greatest<int>());
| ^~~~~~~~
potatosalad.cpp:11:41: error: expected primary-expression before ‘int’
11 | sort(pot.start(),pot.end(),greatest<int>());
| ^~~
potatosalad.cpp:15:20: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
15 | x+=pot.at[i];
| ^