Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:29:139: error: invalid conversion from 'char' to 'const char*' [-fpermissive] else output((n * 2 + 1) * (n * 2 + 1) + 4 * (n * 2 + 1) + 4 * (n * 2 + 1) * (n - 2) + 4 * ((n - 2) * (n - 3) / 2 + n - 1)), printf('\n'); ^ In file included from /usr/include/c++/6/cstdio:42:0, from /in/foo.cc:1: /usr/include/stdio.h:364:12: note: initializing argument 1 of 'int printf(const char*, ...)' extern int printf (const char *__restrict __format, ...); ^~~~~~
信息
- 递交者
- 类型
- 自测
- 题目
- P1052 骑士
- 语言
- C++
- 递交时间
- 2021-01-17 16:42:32
- 评测时间
- 2021-01-17 16:42:32
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes