Problem showertheduck
User Ys
Submission Time 2023-12-29 17:20:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

showertheduck.cpp: In function ‘int main()’:
showertheduck.cpp:2:2: error: ‘cin’ was not declared in this scope
2 | cin.tie(0);
| ^~~
showertheduck.cpp:3:2: error: ‘ios_base’ has not been declared
3 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
showertheduck.cpp:4:7: error: ‘n’ was not declared in this scope
4 | cin>>n;
| ^
showertheduck.cpp:7:8: error: ‘arr’ was not declared in this scope
7 | cin>>arr[i];
| ^~~
showertheduck.cpp:9:7: error: ‘arr’ was not declared in this scope
9 | sort(arr, arr+n);
| ^~~
showertheduck.cpp:9:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
9 | sort(arr, arr+n);
| ^~~~
| short
showertheduck.cpp:15:2: error: ‘cout’ was not declared in this scope
15 | cout<<hold;
| ^~~~