Problem spellofweakness
User AthanChee03
Submission Time 2023-11-20 15:48:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

spellofweakness.cpp: In function ‘int main()’:
spellofweakness.cpp:3:2: error: ‘vector’ was not declared in this scope
3 | vector <int> vector1;
| ^~~~~~
spellofweakness.cpp:3:10: error: expected primary-expression before ‘int’
3 | vector <int> vector1;
| ^~~
spellofweakness.cpp:4:2: error: ‘cin’ was not declared in this scope
4 | cin >> N >> D >> K;
| ^~~
spellofweakness.cpp:9:3: error: ‘vector1’ was not declared in this scope
9 | vector1.push_back(temp1);
| ^~~~~~~
spellofweakness.cpp:11:7: error: ‘vector1’ was not declared in this scope
11 | sort(vector1.begin(), vector1.end());
| ^~~~~~~
spellofweakness.cpp:11:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
11 | sort(vector1.begin(), vector1.end());
| ^~~~
| short
spellofweakness.cpp:20:11: error: expected primary-expression befor