/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:24:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
  scanf("%d%d",&m,&n);
               ~~   ^
foo.cc:24:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
foo.cc:28:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
   scanf("%d",&ch[i]);
              ~~~~~~^
foo.cc:31:2: error: 'prin' was not declared in this scope
  prin
  ^~~~
foo.cc:31:2: note: suggested alternative: 'main'
  prin
  ^~~~
  main
foo.cc:31:2: error: expected '}' at end of input
foo.cc:24:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&m,&n);
  ~~~~~^~~~~~~~~~~~~~
foo.cc:28:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&ch[i]);
   ~~~~~^~~~~~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)

信息

递交者
类型
递交
题目
P1774 机器翻译
语言
C++
递交时间
2020-07-12 13:04:22
评测时间
2020-07-12 13:04:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes