QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#688638#9221. Missing Boundariesucup-team1617#Compile Error//C++231.6kb2024-10-30 11:52:322024-10-30 11:52:34

详细

answer.code: In function ‘void solve()’:
answer.code:30:9: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
   30 |         sort(all(segs));
      |         ^~~~
      |         short
answer.code:13:25: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |         int  N, L; scanf("%d%d", &N, &L);
      |                    ~~~~~^~~~~~~~~~~~~~~~
answer.code:17:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   17 |                 int l, r; scanf("%d%d", &l, &r);
      |                           ~~~~~^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:70:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   70 |         int T; scanf("%d", &T);
      |                ~~~~~^~~~~~~~~~