Problem | GSS |
---|---|
User | Tracxr |
Submission Time | 2023-02-11 17:49:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
GSS.cpp: In function ‘int main()’:
GSS.cpp:10:11: error: expected initializer before ‘:’ token
10 | int arr[n]:
| ^
GSS.cpp:11:14: error: ‘i’ was not declared in this scope
11 | for (int 1=0;i<n; i++)cin>>arr[i];
| ^
GSS.cpp:13:6: error: ‘arr’ was not declared in this scope
13 | sort(arr, arr+n);
| ^~~
GSS.cpp:14:34: error: ‘il’ was not declared in this scope; did you mean ‘i’?
14 | for (int i=n/4;i<n;i++) sum+=arr[il;
| ^~
| i
GSS.cpp:14:36: error: expected ‘]’ before ‘;’ token
14 | for (int i=n/4;i<n;i++) sum+=arr[il;
| ^
| ]