0_0_38490843_2480.cpp:1:4: error: stray '#' in program
111#include <bits/stdc++.h>
^
0_0_38490843_2480.cpp:1:1: error: expected unqualified-id before numeric constant
111#include <bits/stdc++.h>
^
0_0_38490843_2480.cpp: In function 'void work()':
0_0_38490843_2480.cpp:9:19: error: 'scanf' was not declared in this scope
scanf ("%s", s);
^
0_0_38490843_2480.cpp:10:24: error: 'strlen' was not declared in this scope
int len = strlen (s);
^
0_0_38490843_2480.cpp:11:5: error: 'vector' was not declared in this scope
vector<int>a[27];
^
0_0_38490843_2480.cpp:11:12: error: expected primary-expression before 'int'
vector<int>a[27];
^
0_0_38490843_2480.cpp:12:35: error: 'a' was not declared in this scope
for (int i = 1; i <= 26; i++) a[i].push_back (0);
^
0_0_38490843_2480.cpp:14:9: error: 'a' was not declared in this scope
a[s[i] - 'a' + 1].push_back (i + 1);
^
0_0_38490843_2480.cpp:18:9: error: 'a' was not declared in this scope
a[i].push_back (len + 1);
^
0_0_38490843_2480.cpp:29:26: error: 'printf' was not declared in this scope
printf ("%lld\n", ans);
^
0_0_38490843_2480.cpp: In function 'int main()':
0_0_38490843_2480.cpp:34:20: error: 'scanf' was not declared in this scope
scanf ("%d", &T);
^
|