Problem flip
User ShShSh
Submission Time 2023-12-02 17:32:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flip.cpp: In function ‘int main()’:
flip.cpp:8:6: error: conflicting declaration ‘int u [n]’
8 | int u[n];
| ^
flip.cpp:5:6: note: previous declaration as ‘int u’
5 | int u,v,w,i,n,m,l;
| ^
flip.cpp:9:6: error: conflicting declaration ‘int v [n]’
9 | int v[n];
| ^
flip.cpp:5:8: note: previous declaration as ‘int v’
5 | int u,v,w,i,n,m,l;
| ^
flip.cpp:10:6: error: conflicting declaration ‘int w [n]’
10 | int w[n];
| ^
flip.cpp:5:10: note: previous declaration as ‘int w’
5 | int u,v,w,i,n,m,l;
| ^
flip.cpp:13:13: error: invalid types ‘int[int]’ for array subscript
13 | cin >> u[i];
| ^
flip.cpp:14:13: error: invalid types ‘int[int]’ for array subscript
14 | cin >> v[i];
| ^
flip.cpp:15:13: error: invalid types ‘int[int]’ for array subscript
15 | cin