QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#403798#5034. >.<mekoszcCompile Error//C++142.6kb2024-05-02 19:14:382024-05-02 19:14:39

详细

answer.code: In function ‘void ACAM()’:
answer.code:72:25: error: invalid operands of types ‘clock_t() throw ()’ {aka ‘long int()’} and ‘double’ to binary ‘operator*’
   72 |                 if(clock*1.0/CLOCKS_PER_SEC>0.9)
      |                    ~~~~~^~~~
      |                    |     |
      |                    |     double
      |                    clock_t() throw () {aka long int()}
answer.code: In function ‘int main()’:
answer.code:116:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  116 |         scanf("%d%d%d",&n,&m,&k),idx=n;
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:119:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  119 |                 scanf("%d%d%d",&u,&v,&w);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:133:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  133 |                 scanf("%d",&p);
      |                 ~~~~~^~~~~~~~~
answer.code:135:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  135 |                         scanf("%d",a+i);
      |                         ~~~~~^~~~~~~~~~