QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#295561#4824. Bracket-and-bar Sequencesucup-team2895Compile Error//C++143.5kb2023-12-31 12:37:302023-12-31 12:37:31

詳細信息

answer.code: In function ‘void decode::work()’:
answer.code:111:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  111 |         scanf("%d", &t);
      |                ~^   ~~
      |                 |   |
      |                 |   long long int*
      |                 int*
      |                %lld
answer.code:115:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  115 |             scanf("%d%lld", &n, &k);
      |                    ~^       ~~
      |                     |       |
      |                     int*    long long int*
      |                    %lld
At global scope:
cc1plus: error: ‘::main’ must return ‘int’
answer.code: In function ‘void encode::solve()’:
answer.code:54:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   54 |         scanf("%lld%s", &n, a + 1); t = 0;
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘void encode::work()’:
answer.code:67:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   67 |         scanf("%lld", &t); tt = t;
      |         ~~~~~^~~~~~~~~~~~
answer.code: In function ‘void decode::work()’:
answer.code:111:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  111 |         scanf("%d", &t);
      |         ~~~~~^~~~~~~~~~
answer.code:115:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  115 |             scanf("%d%lld", &n, &k);
      |             ~~~~~^~~~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:132:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  132 |     scanf("%s", a);
      |     ~~~~~^~~~~~~~~