0_0_39358365_24844.cpp: In function 'int main()':
0_0_39358365_24844.cpp:16:16: error: 'scanf' was not declared in this scope
16 | while(~scanf("%d",&n)&&n){
| ^~~~~
0_0_39358365_24844.cpp:30:17: error: 'printf' was not declared in this scope
30 | printf("%d\n",count);
| ^~~~~~
0_0_39358365_24844.cpp:3:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
2 | #include<algorithm>
+++ |+#include <cstdio>
3 | using namespace std;
|