Problem | swapsort |
---|---|
User | GreenBlob123 |
Submission Time | 2024-12-04 16:52:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:11:5: error: ‘ios_base’ has not been declared
11 | ios_base::sync_with_stdio(0); cin.tie(0);
| ^~~~~~~~
swapsort.cpp:11:35: error: ‘cin’ was not declared in this scope
11 | ios_base::sync_with_stdio(0); cin.tie(0);
| ^~~
swapsort.cpp:19:5: error: ‘copy’ was not declared in this scope
19 | copy(arr1, arr1 + N, sortedarray);
| ^~~~
swapsort.cpp:20:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
20 | sort(sortedarray, sortedarray + N);
| ^~~~
| short
swapsort.cpp:25:3: error: ‘swap’ was not declared in this scope
25 | swap(arr1[a+1], arr1[b+1]);
| ^~~~
swapsort.cpp:30:2: error: ‘cout’ was not declared in this scope
30 | cout << sum <<"\n";
| ^~~~