Guess.cpp:2:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main() {int N,s,e,m,a;scanf("%d",&N);s=1,e=N;
| ^
Guess.cpp: In function 'int main()':
Guess.cpp:2:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
2 | main() {int N,s,e,m,a;scanf("%d",&N);s=1,e=N;
| ~~~~~^~~~~~~~~
Guess.cpp:7:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%d",&a);
| ~~~~~^~~~~~~~~