Problem | candies2 |
---|---|
User | haydendoo |
Submission Time | 2023-01-12 12:38:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candies2.cpp: In function ‘int main()’:
candies2.cpp:8:12: error: expected ‘;’ before ‘:’ token
8 | cin.tie(0):
| ^
| ;
candies2.cpp:9:18: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
9 | int n,k; cin >> n >> k;
| ^
| yn
candies2.cpp:9:23: error: ‘k’ was not declared in this scope
9 | int n,k; cin >> n >> k;
| ^
candies2.cpp:11:32: error: ‘a’ was not declared in this scope
11 | for(int i=0; i<n; ++i) cin >> a[i];
| ^
candies2.cpp:16:16: error: ‘a’ was not declared in this scope
16 | else first = a[i-1] + a[i];
| ^
candies2.cpp:18:15: error: ‘a’ was not declared in this scope
18 | else second=a[i+1]+a[i];
| ^
candies2.cpp:19:39: error: no matching function for call