0_0_38906097_11251.cpp:3:1: error: expected unqualified-id before '%' token
3 | %include <string>
| ^
0_0_38906097_11251.cpp: In function 'int main()':
0_0_38906097_11251.cpp:8:1: error: 'string' was not declared in this scope
8 | string a,s;
| ^~~~~~
0_0_38906097_11251.cpp:8:1: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iosfwd:41,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_38906097_11251.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:66:11: note: 'std::pmr::string'
66 | using string = basic_string<char>;
| ^~~~~~
0_0_38906097_11251.cpp:9:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
9 | while(cin>>a && a!="ENDOFINPUT")
| ^~~
| std::cin
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
0_0_38906097_11251.cpp:9:12: error: 'a' was not declared in this scope
9 | while(cin>>a && a!="ENDOFINPUT")
| ^
0_0_38906097_11251.cpp:12:13: error: 's' was not declared in this scope
12 | getline(cin,s);
| ^
0_0_38906097_11251.cpp:12:1: error: 'getline' was not declared in this scope; did you mean 'std::getline'?
12 | getline(cin,s);
| ^~~~~~~
| std::getline
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:54:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/basic_string.h:4086:5: note: 'std::getline' declared here
4086 | getline(basic_istream<_CharT, _Traits>&& __is,
| ^~~~~~~
0_0_38906097_11251.cpp:14:13: error: 'length' was not declared in this scope
14 | for(i=0;i<s,length();i++)
| ^~~~~~
0_0_38906097_11251.cpp:25:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
25 | cout<<s<<endl;
| ^~~~
| std::cout
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
0_0_38906097_11251.cpp:25:10: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
25 | cout<<s<<endl;
| ^~~~
| std::endl
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:735:5: note: 'std::endl' declared here
735 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|