QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#762917#8049. Equal SumsHuluoboCompile Error//C++142.5kb2024-11-19 17:16:122024-11-19 17:16:13

詳細信息

answer.code:6:13: error: expected constructor, destructor, or type conversion before ‘(’ token
    6 |     freopen (file ".in", "r", stdin); \
      |             ^
answer.code:8:13: error: expected constructor, destructor, or type conversion before ‘(’ token
    8 |     freopen (file ".out", "w", stdout);
      |             ^
answer.code: In function ‘void solve()’:
answer.code:68:11: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   68 |     scanf ("%d%d", &n, &m);
      |     ~~~~~~^~~~~~~~~~~~~~~~
answer.code:72:15: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   72 |         scanf ("%d%d", &al[i], &ar[i]);
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
answer.code:78:15: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   78 |         scanf ("%d%d", &bl[i], &br[i]);
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~