Problem | sort |
---|---|
User | Yvonne |
Submission Time | 2024-06-19 14:37:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sort.cpp: In function ‘int main()’:
sort.cpp:14:16: error: expected ‘)’ before ‘;’ token
14 | cin >> arr[i];
| ^
| )
sort.cpp:13:24: note: to match this ‘(’
13 | for(int i=0; i<n; i++)(
| ^
sort.cpp: At global scope:
sort.cpp:16:6: error: expected constructor, destructor, or type conversion before ‘(’ token
16 | sort(arr, arr+n, comp);
| ^
sort.cpp:17:3: error: expected unqualified-id before ‘for’
17 | for(int i=0; i<n; i++)(
| ^~~
sort.cpp:17:16: error: ‘i’ does not name a type
17 | for(int i=0; i<n; i++)(
| ^
sort.cpp:17:21: error: ‘i’ does not name a type
17 | for(int i=0; i<n; i++)(
| ^
sort.cpp:19:4: error: expected declaration before ‘}’ token
19 | }
| ^
sort.cpp:20:4: error: expected declaration before ‘}’ token