foo.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude<iostream>
| ^~~~~~~
| include
foo.cc: In function 'int main()':
foo.cc:8:9: error: 'cin' was not declared in this scope
8 | cin>>s;
| ^~~
foo.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
3 | #include<cstring>
+++ |+#include <iostream>
4 | using namespace std;
foo.cc:11:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(i=0;i<s.length();i++){
| ~^~~~~~~~~~~
foo.cc:13:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(j=i+1;j<s.length();j++){
| ~^~~~~~~~~~~
foo.cc:17:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | if(j==s.length())
| ~^~~~~~~~~~~~
foo.cc:19:25: error: 'cout' was not declared in this scope
19 | cout<<i;
| ^~~~
foo.cc:19:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:24:22: error: 'cout' was not declared in this scope
24 | if(!success) cout<<-1;
| ^~~~
foo.cc:24:22: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
[Hydro](https://hydro.ac)提供评测服务