QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#776365#9788. Shrecklessucup-team5810#Compile Error//C++141.1kb2024-11-23 18:22:592024-11-23 18:23:00

详细

answer.code: In function ‘void solve()’:
answer.code:23:9: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
   23 |         sort(a[i].begin(), a[i].end());
      |         ^~~~
      |         short
answer.code:9:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code:16:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   16 |             scanf("%d", &x);
      |             ~~~~~^~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:48:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   48 |     scanf("%d", &t);
      |     ~~~~~^~~~~~~~~~