Problem smurf
User Elnathan
Submission Time 2023-02-18 20:09:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smurf.cpp: In function ‘int main()’:
smurf.cpp:9:25: error: expected ‘;’ before ‘for’
9 | smurf.reserve(nosmurfs)
| ^
| ;
10 | for (int i = 0, temp; i < nosmurfs; i++) {
| ~~~
smurf.cpp:10:27: error: ‘i’ was not declared in this scope
10 | for (int i = 0, temp; i < nosmurfs; i++) {
| ^