QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#549754 | #147. Floppy | 5un_xiaomivita_mbox | Compile Error | / | / | C++23 | 812b | 2024-09-06 21:06:28 | 2024-09-06 21:06:28 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
floppy.code: In function ‘std::vector<int> solve_queries(int, int, const string&, const std::vector<int>&, const std::vector<int>&)’: floppy.code:18:28: error: ‘>>’ should be ‘> >’ within a nested template argument list 18 | vector<vector<pair<int,int>>>qry(n); | ^~ | > > floppy.code:19:34: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘emplace_back’ 19 | for (int i=0;i<q;i++) qry[b[i]].emplace_back(a[i],i); | ^~~~~~~~~~~~ floppy.code:23:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 23 | for (auto [x,id]:qry[i]) | ^ floppy.code:23:14: error: ISO C++ forbids declaration of ‘structured binding’ with no type [-fpermissive] 23 | for (auto [x,id]:qry[i]) | ^~~~~~ floppy.code:23:14: error: structured binding declaration cannot be C++98 ‘auto’ floppy.code:23:14: error: structured binding declaration cannot have type ‘int’ floppy.code:23:14: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’ floppy.code:23:21: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 23 | for (auto [x,id]:qry[i]) | ^~~ floppy.code:23:26: error: forming reference to reference type ‘std::vector<std::pair<int, int> >&’ 23 | for (auto [x,id]:qry[i]) | ^ grader_floppy.cpp: In function ‘void my_fprintf(FILE*, const char*, ...)’: grader_floppy.cpp:17:9: error: ‘exit’ was not declared in this scope 17 | exit(0); | ^~~~ grader_floppy.cpp: In function ‘void my_fscanf(FILE*, int, const char*, ...)’: grader_floppy.cpp:26:9: error: ‘exit’ was not declared in this scope 26 | exit(0); | ^~~~ grader_floppy.cpp: In function ‘void save_to_floppy(const string&)’: grader_floppy.cpp:51:5: error: ‘exit’ was not declared in this scope 51 | exit(0); | ^~~~ grader_floppy.cpp: In function ‘int main(int, char**)’: grader_floppy.cpp:91:15: error: ‘atoi’ was not declared in this scope 91 | int run = atoi(argv[1]); | ^~~~