QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#512994#9168. Square Locatorucup-team4528#Compile Error//C++204.9kb2024-08-10 16:33:432024-08-10 16:33:48

Details

answer.code:114:6: error: ‘vector’ in namespace ‘std’ does not name a template type
  114 | std::vector<std::pair<int, int>> f(ll n){
      |      ^~~~~~
answer.code:7:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
    6 | #include<set>
  +++ |+#include <vector>
    7 | using namespace std; typedef long long ll;
answer.code:135:6: error: variable or field ‘ck’ declared void
  135 | void ck(std::vector<std::pair<int, int>> vc){
      |      ^~
answer.code:135:14: error: ‘vector’ is not a member of ‘std’
  135 | void ck(std::vector<std::pair<int, int>> vc){
      |              ^~~~~~
answer.code:135:14: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
answer.code:135:39: error: expected primary-expression before ‘>’ token
  135 | void ck(std::vector<std::pair<int, int>> vc){
      |                                       ^~
answer.code:135:42: error: ‘vc’ was not declared in this scope
  135 | void ck(std::vector<std::pair<int, int>> vc){
      |                                          ^~
answer.code: In function ‘int fk::main()’:
answer.code:144:57: error: ‘f’ was not declared in this scope
  144 |     std::cin >> n1 >> n2 >> n3 >> n4; x1 = 0; auto vc = f(n2);
      |                                                         ^
answer.code:145:25: error: ‘ck’ was not declared in this scope; did you mean ‘chk’?
  145 |     y1 = (int)sqrt(n1); ck(vc); y1 = -(int)sqrt(n2); ck(vc); return 0;
      |                         ^~
      |                         chk