记录详情

Compile Error

foo.cc:11:2: error: expected initializer before 'int'
  int n, res = 0; scanf("%d", &n);
  ^~~
foo.cc:11:23: error: expected constructor, destructor, or type conversion before '(' token
  int n, res = 0; scanf("%d", &n);
                       ^
foo.cc:12:7: error: expected constructor, destructor, or type conversion before '(' token
  scanf("%s", a);
       ^
foo.cc:13:2: error: expected unqualified-id before 'for'
  for ( auto i : a )
  ^~~
foo.cc:15:8: error: expected constructor, destructor, or type conversion before '(' token
  printf("%d", res);
        ^
foo.cc:16:1: error: expected declaration before '}' token
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1095 xf2-8大写字母个数
语言
C++
递交时间
2021-11-14 13:54:50
评测时间
2021-11-14 13:54:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes