Problem 3nplus1
User YongXin
Submission Time 2023-06-01 20:19:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:18:16: error: expected ‘;’ before ‘}’ token
18 | newa[k]=a[k]
| ^
| ;
19 | }
| ~
3nplus1.cpp:21:5: error: incompatible types in assignment of ‘int [(i + 1)]’ to ‘long long int [1]’
21 | a=newa
| ^~~~
3nplus1.cpp:23:9: error: expected ‘;’ before ‘}’ token
23 | cout<<a
| ^
| ;
24 | //for (int k=0; k<20; ++k) {
25 | }
| ~
3nplus1.cpp: At global scope:
3nplus1.cpp:26:1: error: expected declaration before ‘}’ token
26 | }
| ^