QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#697999 | #9528. New Energy Vehicle | IWantPapers | Compile Error | / | / | C++17 | 7.7kb | 2024-11-01 16:46:55 | 2024-11-01 16:46:56 |
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:179:6: error: expected ‘}’ at end of input 179 | } | ^ answer.code:45:12: note: to match this ‘{’ 45 | int main() { | ^ answer.code:47:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 47 | scanf("%d", &testCases); // 读取测试用例的数量 | ~~~~~^~~~~~~~~~~~~~~~~~ answer.code:51:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 51 | scanf("%d %d", &n, &m); // 读取电池数量和充电站数量 | ~~~~~^~~~~~~~~~~~~~~~~ answer.code:55:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 55 | scanf("%d", &batteryCapacity[i]); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:67:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 67 | scanf("%d %d", &rawChargingStations[i].first, &rawChargingStations[i].second); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~