Problem sort
User asbx
Submission Time 2023-12-06 15:59:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:2:13: error: ‘unsigned’ specified with ‘double’
2 | #define int unsigned double
| ^~~~~~~~
sort.cpp:5:2: note: in expansion of macro ‘int’
5 | int n;
| ^~~
sort.cpp:2:13: error: ‘unsigned’ specified with ‘double’
2 | #define int unsigned double
| ^~~~~~~~
sort.cpp:7:2: note: in expansion of macro ‘int’
7 | int arr[n];
| ^~~
sort.cpp:7:10: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
7 | int arr[n];
| ^
sort.cpp:7:10: error: could not convert ‘n’ from ‘double’ to ‘long unsigned int’
sort.cpp:7:10: error: size of array ‘arr’ has non-integral type ‘double’
sort.cpp:2:13: error: ‘unsigned’ specified with ‘double’
2 | #define int unsigned double
| ^~~~~~~~
sort.cpp:8:6: note: in expansion of macro ‘int’
8 | for(int i=0; i<