Compile Error
foo.cc: In function ‘int main()’: foo.cc:11:24: warning: comparison with string literal results in unspecified behavior [-Waddress] 11 | if(g1>=80&&west=="Y") | ~~~~^~~~~ foo.cc:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] foo.cc:13:27: warning: comparison with string literal results in unspecified behavior [-Waddress] 13 | if(g2>=85&&officer=="Y") | ~~~~~~~^~~~~ foo.cc:13:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
信息
- 递交者
- 类型
- 递交
- 题目
- P1001 谁拿了最多奖学金
- 语言
- C++
- 递交时间
- 2025-09-25 20:13:43
- 评测时间
- 2025-09-25 20:13:43
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes