Problem xmas
User xiaotong
Submission Time 2023-11-17 14:31:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int32_t main()’:
xmas.cpp:7:3: error: expected initializer before ‘int’
7 | int people[n];
| ^~~
xmas.cpp:9:10: error: ‘gift’ was not declared in this scope
9 | cin >> gift[total];
| ^~~~
xmas.cpp:12:3: error: ‘people’ was not declared in this scope
12 | people[1] = &gift.value(1)
| ^~~~~~
xmas.cpp:12:16: error: ‘gift’ was not declared in this scope
12 | people[1] = &gift.value(1)
| ^~~~