Problem GSS
User Aum
Submission Time 2024-04-28 23:09:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

GSS.cpp: In function ‘int main()’:
GSS.cpp:5:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int arr[n];
| ^
| yn
GSS.cpp:11:3: error: ‘arr’ was not declared in this scope
11 | arr[i] = a;
| ^~~
GSS.cpp:13:7: error: ‘arr’ was not declared in this scope
13 | sort(arr, arr + n, greater<int>());
| ^~~
GSS.cpp:15:12: error: overloaded function with no contextual type information
15 | count += 1;
| ^
GSS.cpp:17:13: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
17 | if (count == 4){
| ~~~~~~^~~~