Problem iroha
User hyishigh
Submission Time 2024-12-28 09:57:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

iroha.cpp: In function ‘int main()’:
iroha.cpp:8:11: error: incompatible types in assignment of ‘int’ to ‘long long int [n]’
8 | arr[0] = 0;
| ^
iroha.cpp:10:12: error: incompatible types in assignment of ‘long long int’ to ‘long long int [n]’
10 | arr[i] = i;
| ^
iroha.cpp:21:17: error: ‘comp’ was not declared in this scope
21 | sort(ar, ar+n, comp);
| ^~~~