Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:42:14: warning: zero-length gnu_printf format string [-Wformat-zero-length] printf(""); ^ /in/foo.cc:44:25: error: 'strlen' was not declared in this scope if (text[strlen(text) - 1] == '\n') { ^ /in/foo.cc:48:14: warning: zero-length gnu_printf format string [-Wformat-zero-length] printf(""); ^ /in/foo.cc:50:31: error: 'strlen' was not declared in this scope if (keyword[strlen(keyword) - 1] == '\n') { ^
信息
- 递交者
- 类型
- 自测
- 语言
- C++
- 递交时间
- 2024-11-26 08:30:35
- 评测时间
- 2024-11-26 08:30:35
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes