QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#556300 | #8586. Party | kheiramihoub | Compile Error | / | / | C++14 | 546b | 2024-09-10 16:41:34 | 2024-09-10 16:41:38 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:3:16: error: ‘ios_base’ has not been declared 3 | #define KHEIRA ios_base::sync_with_stdio(false); | ^~~~~~~~ answer.code:6:5: note: in expansion of macro ‘KHEIRA’ 6 | KHEIRA WAH | ^~~~~~ answer.code:4:13: error: ‘cin’ was not declared in this scope 4 | #define WAH cin.tie(NULL); | ^~~ answer.code:6:12: note: in expansion of macro ‘WAH’ 6 | KHEIRA WAH | ^~~ answer.code:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | using namespace std; answer.code:4:21: error: ‘NULL’ was not declared in this scope 4 | #define WAH cin.tie(NULL); | ^~~~ answer.code:6:12: note: in expansion of macro ‘WAH’ 6 | KHEIRA WAH | ^~~ answer.code:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’? +++ |+#include <cstddef> 1 | using namespace std; answer.code:2:12: error: ‘vector’ was not declared in this scope 2 | #define vi vector<int> | ^~~~~~ answer.code:9:5: note: in expansion of macro ‘vi’ 9 | vi arr(n); | ^~ answer.code:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? +++ |+#include <vector> 1 | using namespace std; answer.code:2:19: error: expected primary-expression before ‘int’ 2 | #define vi vector<int> | ^~~ answer.code:9:5: note: in expansion of macro ‘vi’ 9 | vi arr(n); | ^~ answer.code:10:24: error: ‘arr’ was not declared in this scope 10 | for(int i = 0; i < arr.size(); ++i){ | ^~~ answer.code:13:11: error: ‘arr’ was not declared in this scope 13 | sort (arr.begin(), arr.end(), greater<int>()); | ^~~ answer.code:13:35: error: ‘greater’ was not declared in this scope 13 | sort (arr.begin(), arr.end(), greater<int>()); | ^~~~~~~ answer.code:13:43: error: expected primary-expression before ‘int’ 13 | sort (arr.begin(), arr.end(), greater<int>()); | ^~~ answer.code:13:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 13 | sort (arr.begin(), arr.end(), greater<int>()); | ^~~~ | short answer.code:16:13: error: expected unqualified-id before ‘=’ token 16 | for(int = 0; i < number ; ++i){ | ^ answer.code:16:12: error: expected ‘;’ before ‘=’ token 16 | for(int = 0; i < number ; ++i){ | ^~ | ; answer.code:16:13: error: expected primary-expression before ‘=’ token 16 | for(int = 0; i < number ; ++i){ | ^ answer.code:16:18: error: ‘i’ was not declared in this scope 16 | for(int = 0; i < number ; ++i){ | ^ answer.code:16:28: error: expected ‘)’ before ‘;’ token 16 | for(int = 0; i < number ; ++i){ | ~ ^~ | ) answer.code:16:33: error: ‘i’ was not declared in this scope 16 | for(int = 0; i < number ; ++i){ | ^ answer.code:22:5: error: ‘cout’ was not declared in this scope 22 | cout << sum << endl; | ^~~~ answer.code:22:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? answer.code:22:20: error: ‘endl’ was not declared in this scope 22 | cout << sum << endl; | ^~~~ answer.code:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’? +++ |+#include <ostream> 1 | using namespace std;