| Problem | waveway7 |
|---|---|
| User | gOrDoN |
| Submission Time | 2026-11-06 15:53:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
waveway7.cpp: In function ‘int main()’:
waveway7.cpp:7:37: error: expected ‘;’ before ‘if’
7 | for(int i=0; i<n; i++) cin>>A[i]
| ^
| ;
8 | if(n==1)cout<<A[i]<<k<<A[i];
| ~~
waveway7.cpp:9:5: error: ‘else’ without a previous ‘if’
9 | else if(n==2)cout<<max(A[0],A[1])<<k<<max(A[0],A[1])
| ^~~~
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])
| ^