/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d%d", &L, &M);
      |     ^~~~~
/in/foo.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<pair<int,int>> res;
      |     ^~~~~~
/in/foo.cc:7:12: error: 'pair' was not declared in this scope
    7 |     vector<pair<int,int>> res;
      |            ^~~~
/in/foo.cc:7:17: error: expected primary-expression before 'int'
    7 |     vector<pair<int,int>> res;
      |                 ^~~
/in/foo.cc:12:9: error: 'res' was not declared in this scope
   12 |         res.push_back({a,b});
      |         ^~~
/in/foo.cc:14:10: error: 'res' was not declared in this scope
   14 |     sort(res.begin(),res.end());
      |          ^~~
/in/foo.cc:14:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |     sort(res.begin(),res.end());
      |     ^~~~
      |     short
/in/foo.cc:16:17: error: expected primary-expression before 'int'
   16 |     vector<pair<int,int>> merge;
      |                 ^~~
/in/foo.cc:18:12: error: 'merge' was not declared in this scope
   18 |         if(merge.empty()){
      |            ^~~~~
/in/foo.cc:26:37: error: 'max' was not declared in this scope
   26 |                 merge.back().second=max(last_end,cur_end);
      |                                     ^~~
/in/foo.cc:35:19: error: 'merge' was not declared in this scope
   35 |     for(auto &val:merge){
      |                   ^~~~~
/in/foo.cc:40:5: error: 'printf' was not declared in this scope
   40 |     printf("%d",L);
      |     ^~~~~~
/in/foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | include <bits/stdc++.h>

信息

递交者
类型
递交
题目
P1103 校门外的树
语言
C++
递交时间
2025-06-14 20:13:28
评测时间
2025-06-14 20:13:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes