Compile Error

foo.cc:14:10: error: stray '\' in program
   14 | printf(%d\n",c);
      |          ^
foo.cc:14:12: warning: missing terminating " character
   14 | printf(%d\n",c);
      |            ^
foo.cc:14:12: error: missing terminating " character
   14 | printf(%d\n",c);
      |            ^~~~~
foo.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
foo.cc: In function 'int main()':
foo.cc:14:8: error: expected primary-expression before '%' token
   14 | printf(%d\n",c);
      |        ^
foo.cc:14:9: error: 'd' was not declared in this scope
   14 | printf(%d\n",c);
      |         ^
foo.cc:10:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   10 | scanf("%d",&a);
      | ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1005 求逆序数
语言
C++
递交时间
2022-07-13 15:51:10
评测时间
2022-07-13 15:51:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes