Problem waveway7
User gOrDoN
Submission Time 2026-11-06 15:53:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waveway7.cpp: In function ‘int main()’:
waveway7.cpp:8:21: error: ‘i’ was not declared in this scope
8 | if(n==1)cout<<A[i]<<k<<A[i];
| ^
waveway7.cpp:8:25: error: ‘k’ was not declared in this scope
8 | if(n==1)cout<<A[i]<<k<<A[i];
| ^
waveway7.cpp:9:40: error: ‘k’ was not declared in this scope
9 | else if(n==2)cout<<max(A[0],A[1])<<k<<max(A[0],A[1]);
| ^