Problem summoning
User YunQingOng
Submission Time 2026-06-27 14:41:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

summoning.cpp: In function ‘int main()’:
summoning.cpp:6:21: error: expected ‘;’ before ‘long’
6 | cin.tie(nullptr)
| ^
| ;
7 | long long n, d,total = 0;
| ~~~~
summoning.cpp:10:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
10 | cin >> n >> d;
| ^
| yn
summoning.cpp:10:17: error: ‘d’ was not declared in this scope
10 | cin >> n >> d;
| ^
summoning.cpp:18:9: error: ‘total’ was not declared in this scope
18 | total += p[i];
| ^~~~~
summoning.cpp:28:9: error: ‘total’ was not declared in this scope
28 | total += a[i];
| ^~~~~