运行 ID: 33148

Main.cc:12:13: error: ISO C++ forbids declaration of ‘spfa’ with no type [-fpermissive]
 inline spfa(){
             ^
Main.cc: In function ‘int spfa()’:
Main.cc:30:1: warning: no return statement in function returning non-void [-Wreturn-type]
 } 
 ^
Main.cc: In function ‘int main()’:
Main.cc:32:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&T);
  ~~~~~^~~~~~~~~~~~~~
Main.cc:34:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&w);
   ~~~~~^~~~~~~~~
Main.cc:41:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&x,&y);
   ~~~~~^~~~~~~~~~~~~~