QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#536595 | #7559. Bocchi the Rock | ucup-team2818 | Compile Error | / | / | C++98 | 4.6kb | 2024-08-29 14:51:15 | 2024-08-29 14:51:16 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In destructor ‘IO::~IO()’: answer.code:21:39: error: ‘stdout’ was not declared in this scope 21 | ~IO() {fwrite(pbuf, 1, pp - pbuf, stdout);} | ^~~~~~ answer.code:5:1: note: ‘stdout’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? 4 | #include <algorithm> +++ |+#include <cstdio> 5 | answer.code:21:12: error: ‘fwrite’ was not declared in this scope; did you mean ‘Write’? 21 | ~IO() {fwrite(pbuf, 1, pp - pbuf, stdout);} | ^~~~~~ | Write answer.code: In member function ‘void IO::Read(T&)’: answer.code:23:73: error: ‘stdin’ was not declared in this scope 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:32:34: note: in expansion of macro ‘gc’ 32 | bool sign = 0; char ch = gc(); x = 0; | ^~ answer.code:23:73: note: ‘stdin’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:32:34: note: in expansion of macro ‘gc’ 32 | bool sign = 0; char ch = gc(); x = 0; | ^~ answer.code:23:50: error: there are no arguments to ‘fread’ that depend on a template parameter, so a declaration of ‘fread’ must be available [-fpermissive] 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:32:34: note: in expansion of macro ‘gc’ 32 | bool sign = 0; char ch = gc(); x = 0; | ^~ answer.code:23:50: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:32:34: note: in expansion of macro ‘gc’ 32 | bool sign = 0; char ch = gc(); x = 0; | ^~ answer.code:23:50: error: there are no arguments to ‘fread’ that depend on a template parameter, so a declaration of ‘fread’ must be available [-fpermissive] 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:33:35: note: in expansion of macro ‘gc’ 33 | for (; !isdigit(ch); ch = gc()) | ^~ answer.code:23:50: error: there are no arguments to ‘fread’ that depend on a template parameter, so a declaration of ‘fread’ must be available [-fpermissive] 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:35:34: note: in expansion of macro ‘gc’ 35 | for (; isdigit(ch); ch = gc()) x = x * 10 + (ch ^ 48); | ^~ answer.code: In member function ‘void IO::Read(char*)’: answer.code:23:73: error: ‘stdin’ was not declared in this scope 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:44:19: note: in expansion of macro ‘gc’ 44 | char ch = gc(); | ^~ answer.code:23:73: note: ‘stdin’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:44:19: note: in expansion of macro ‘gc’ 44 | char ch = gc(); | ^~ answer.code:23:50: error: ‘fread’ was not declared in this scope 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:44:19: note: in expansion of macro ‘gc’ 44 | char ch = gc(); | ^~ answer.code: In member function ‘void IO::Read(char&)’: answer.code:23:73: error: ‘stdin’ was not declared in this scope 23 | #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++) | ^~~~~ answer.code:50:34: note: in expansion of macro ‘...