QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#139096#5404. 述树术flower#Compile Error//C++202.0kb2023-08-12 17:39:482024-07-04 01:38:54

Details

implementer.cpp: In function ‘int main()’:
implementer.cpp:124:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  124 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
implementer.cpp:127:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  127 |         scanf("%d%d", &a, &b);
      |         ~~~~~^~~~~~~~~~~~~~~~
implementer.cpp:145:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  145 |     scanf("%d", &test_stat);
      |     ~~~~~^~~~~~~~~~~~~~~~~~
answer.code: In function ‘int flower::ask(int, int)’:
answer.code:17:25: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
   17 |                         return ;
      |                         ^~~~~~