QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#335540 | #2921. Land Equality | MaMengQi | Compile Error | / | / | C++20 | 1.2kb | 2024-02-23 15:52:46 | 2024-02-23 15:52:46 |
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:31:12: error: expected ‘(’ before ‘freeones’ 31 | if freeones>0{ | ^~~~~~~~ | ( answer.code:34:10: error: expected ‘}’ before ‘else’ 34 | }else{ | ^~~~ answer.code:30:41: note: to match this ‘{’ 30 | if((columns==1||rows==1)&&zeroes==1){ | ^ answer.code:39:6: error: ‘else’ without a previous ‘if’ 39 | }else if(zeroes==0){ | ^~~~ answer.code:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d",&rows); | ~~~~~^~~~~~~~~~~~ answer.code:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&columns); | ~~~~~^~~~~~~~~~~~~~~ answer.code:16:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 16 | scanf("%d",&curr_num); | ~~~~~^~~~~~~~~~~~~~~~