| Problem | tourist_noi |
|---|---|
| User | jiazethesigma |
| Submission Time | 2026-01-11 12:14:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
tourist_noi.cpp: In function ‘int main()’:
tourist_noi.cpp:7:6: error: conflicting declaration ‘int x [n]’
7 | int x[n];
| ^
tourist_noi.cpp:5:8: note: previous declaration as ‘int x’
5 | int n,x,y;
| ^
tourist_noi.cpp:10:31: error: invalid types ‘int[int]’ for array subscript
10 | for(int i=0;i<n;i++) cin>>x[i];
| ^
tourist_noi.cpp:13:9: error: invalid types ‘int[int]’ for array subscript
13 | if(x[i]>threshold) cost+=y;
| ^