QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#549835 | #149. Peru | 5un_xiaomivita_mbox | Compile Error | / | / | C++14 | 2.3kb | 2024-09-06 21:54:57 | 2024-09-10 16:47:07 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
implementer.cpp: In function ‘char nextch()’: implementer.cpp:15:31: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | if (pos == BUF_SIZE) fread(buf, BUF_SIZE, 1, fin), pos = 0; | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~ answer.code: In function ‘int add(int, int)’: answer.code:15:25: error: ‘{return’ was not declared in this scope 15 | if(a + b < MOD) {return a + b;} | ^~~~~~~~ answer.code:15:40: error: ‘}’ was not declared in this scope 15 | if(a + b < MOD) {return a + b;} | ^~ answer.code:17:1: warning: no return statement in function returning non-void [-Wreturn-type] 17 | } | ^