记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:12: error: expected initializer before '.' token
   10 |     int cin.ignore();
      |            ^
/in/foo.cc:11:20: error: expected initializer before 'str'
   11 |         int string str;
      |                    ^~~
/in/foo.cc:12:22: error: 'str' was not declared in this scope; did you mean 'std'?
   12 |     int getline(cin, str);
      |                      ^~~
      |                      std
/in/foo.cc:12:25: error: expression list treated as compound expression in initializer [-fpermissive]
   12 |     int getline(cin, str);
      |                         ^
/in/foo.cc:18:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   18 |         if (c>='A'&c<='Z'){
      |             ~^~~~~
/in/foo.cc:12:9: warning: unused variable 'getline' [-Wunused-variable]
   12 |     int getline(cin, str);
      |         ^~~~~~~

信息

递交者
类型
递交
题目
P1095 xf2-8大写字母个数
比赛
2025年春 南师大《程序设计与竞赛》作业赛第四场
语言
C++
递交时间
2025-03-29 20:40:15
评测时间
2025-03-29 20:40:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes