Problem wrongreverse
User Gotproblemah
Submission Time 2025-06-20 15:47:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wrongreverse.cpp: In function ‘int32_t main()’:
wrongreverse.cpp:7:11: error: expected ‘]’ before ‘,’ token
7 | int arr[3, 1, 4, 1, 5];
| ^
| ]
wrongreverse.cpp:7:13: error: expected unqualified-id before numeric constant
7 | int arr[3, 1, 4, 1, 5];
| ^
wrongreverse.cpp:8:6: error: ‘arr’ was not declared in this scope
8 | sort(arr,arr+N);
| ^~~
wrongreverse.cpp:8:14: error: ‘N’ was not declared in this scope
8 | sort(arr,arr+N);
| ^
wrongreverse.cpp:10:8: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
10 | cin>>5, 1, 4, 1, 3[i];
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/