QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#295561 | #4824. Bracket-and-bar Sequences | ucup-team2895 | Compile Error | / | / | C++14 | 3.5kb | 2023-12-31 12:37:30 | 2023-12-31 12:37:31 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void decode::work()’: answer.code:111:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] 111 | scanf("%d", &t); | ~^ ~~ | | | | | long long int* | int* | %lld answer.code:115:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] 115 | scanf("%d%lld", &n, &k); | ~^ ~~ | | | | int* long long int* | %lld At global scope: cc1plus: error: ‘::main’ must return ‘int’ answer.code: In function ‘void encode::solve()’: answer.code:54:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 54 | scanf("%lld%s", &n, a + 1); t = 0; | ~~~~~^~~~~~~~~~~~~~~~~~~~~ answer.code: In function ‘void encode::work()’: answer.code:67:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 67 | scanf("%lld", &t); tt = t; | ~~~~~^~~~~~~~~~~~ answer.code: In function ‘void decode::work()’: answer.code:111:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 111 | scanf("%d", &t); | ~~~~~^~~~~~~~~~ answer.code:115:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 115 | scanf("%d%lld", &n, &k); | ~~~~~^~~~~~~~~~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:132:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 132 | scanf("%s", a); | ~~~~~^~~~~~~~~