foo.cc: In function 'int main()':
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%[^\n] %[^\n]",s1,s2);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:13:14: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<cnt2<<" ";
^~~
foo.cc:11:14: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
cout<<cnt1<<" ";
^~~
foo.cc: In function 'int length(char*)':
foo.cc:21:9: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
return cnt;
^~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。