QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#801289 | #9804. Guess the Polygon | ucup-team2454# | Compile Error | / | / | C++20 | 4.3kb | 2024-12-06 20:57:46 | 2024-12-06 20:57:47 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In constructor ‘INT::INT()’: answer.code:10:15: error: ‘memset’ was not declared in this scope 10 | len=1;memset(a,0,sizeof(a)); | ^~~~~~ answer.code:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? +++ |+#include <cstring> 1 | answer.code: In constructor ‘INT::INT(int)’: answer.code:15:9: error: ‘memset’ was not declared in this scope 15 | memset(a,0,sizeof(a)); | ^~~~~~ answer.code:15:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? answer.code: In copy constructor ‘INT::INT(const INT&)’: answer.code:25:9: error: ‘memset’ was not declared in this scope 25 | memset(a,0,sizeof(a)); | ^~~~~~ answer.code:25:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? answer.code: In member function ‘INT& INT::operator=(const INT&)’: answer.code:32:9: error: ‘memset’ was not declared in this scope 32 | memset(a,0,sizeof(a)); | ^~~~~~ answer.code:32:9: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? answer.code: At global scope: answer.code:135:1: error: ‘ostream’ does not name a type 135 | ostream& operator<<(ostream& out,INT &b){ | ^~~~~~~ answer.code:159:11: error: ‘pair’ does not name a type 159 | #define P pair<int,int> | ^~~~ answer.code:160:1: note: in expansion of macro ‘P’ 160 | P p[N]; | ^ answer.code: In function ‘void solve()’: answer.code:163:5: error: ‘cin’ was not declared in this scope 163 | cin>>n; | ^~~ answer.code:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | answer.code:165:14: error: ‘p’ was not declared in this scope 165 | cin>>p[i].first>>p[i].second; | ^ answer.code:167:10: error: ‘p’ was not declared in this scope 167 | sort(p+1,p+1+n); | ^ answer.code:167:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 167 | sort(p+1,p+1+n); | ^~~~ | short answer.code:170:5: error: ‘cout’ was not declared in this scope 170 | cout<<f[1].x<<" "<<f[1].y<<" "<<f[n].x<<" "<<f[n].y<<endl; | ^~~~ answer.code:170:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? answer.code:170:58: error: ‘endl’ was not declared in this scope 170 | cout<<f[1].x<<" "<<f[1].y<<" "<<f[n].x<<" "<<f[n].y<<endl; | ^~~~ answer.code:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’? +++ |+#include <ostream> 1 | answer.code: In function ‘int main()’: answer.code:190:5: error: ‘cin’ was not declared in this scope 190 | cin>>T; | ^~~ answer.code:190:5: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?