Problem ljubomora
User MasterCoder8421
Submission Time 2025-12-04 07:13:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ljubomora.cpp: In function ‘int main()’:
ljubomora.cpp:6:5: error: ‘ll’ was not declared in this scope
6 | ll n, m;
| ^~
ljubomora.cpp:7:21: error: ‘n’ was not declared in this scope
7 | scanf("%d %d", &n, &m);
| ^
ljubomora.cpp:7:25: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
7 | scanf("%d %d", &n, &m);
| ^
| tm
ljubomora.cpp:8:14: error: template argument 2 is invalid
8 | vector<ll> candies(m);
| ^
ljubomora.cpp:9:7: error: expected ‘;’ before ‘r’
9 | ll r=0;
| ^~
| ;
ljubomora.cpp:10:12: error: expected ‘;’ before ‘i’
10 | for (ll i=0; i<m; i++){scanf("%d", &candies[i]); r+=candies[i];}
| ^~
| ;
ljubomora.cpp:10:18: error: ‘i’ was not declared in this scope
10 | fo