QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#80179 | #5519. Count Hamiltonian Cycles | wlxhkk | Compile Error | / | / | C++20 | 709b | 2023-02-22 22:28:18 | 2023-02-22 22:28:18 |
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:29:41: error: expected ‘}’ before ‘else’ 29 | else{ | ^~~~ answer.code:28:37: note: to match this ‘{’ 28 | else{ | ^ answer.code:29:41: error: expected ‘}’ before ‘else’ 29 | else{ | ^~~~ answer.code:23:30: note: to match this ‘{’ 23 | if(a){ | ^ answer.code:35:25: error: ‘else’ without a previous ‘if’ 35 | else if(c){ | ^~~~ answer.code:40:28: error: ‘u’ was not declared in this scope 40 | if(u) swap(a,b); | ^ answer.code: At global scope: answer.code:42:23: error: expected constructor, destructor, or type conversion before ‘(’ token 42 | printf("%lld\n",as*ksm(2,((ll)n*(p-2)-1)%(p-1))%p); | ^ answer.code:43:9: error: expected declaration before ‘}’ token 43 | } | ^ answer.code:44:1: error: expected declaration before ‘}’ token 44 | } | ^ answer.code: In function ‘int main()’: answer.code:18:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%d\n",&n);as=1; | ~~~~~^~~~~~~~~~~