QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#697999#9528. New Energy VehicleIWantPapersCompile Error//C++177.7kb2024-11-01 16:46:552024-11-01 16:46:56

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);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~