Problem | wrongreverse |
---|---|
User | Gotproblemah |
Submission Time | 2025-06-20 13:26:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
wrongreverse.cpp: In function ‘int main()’:
wrongreverse.cpp:4:11: error: expected ‘]’ before ‘,’ token
4 | int arr[3, 1, 4, 1, 5];
| ^
| ]
wrongreverse.cpp:4:13: error: expected unqualified-id before numeric constant
4 | int arr[3, 1, 4, 1, 5];
| ^
wrongreverse.cpp:5:1: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
5 | sort(5, 1, 4, 1, 5);
| ^~~~
| qsort
wrongreverse.cpp:6:15: error: ‘N’ was not declared in this scope
6 | for(int i=0;i<N;i++){
| ^
wrongreverse.cpp:7:10: error: ‘n’ was not declared in this scope
7 | cin>>n;
| ^
wrongreverse.cpp:8:1: error: expected ‘}’ at end of input
8 | }
| ^
wrongreverse.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^