foo.cc:1:2: error: stray ‘#’ in program
1 | v#include<bits/stdc++.h>
| ^
foo.cc:1:1: error: ‘v’ does not name a type
1 | v#include<bits/stdc++.h>
| ^
foo.cc:3:1: error: ‘string’ does not name a type
3 | string s,st;
| ^~~~~~
foo.cc:4:12: error: ‘string’ was not declared in this scope
4 | bool check(string s){
| ^~~~~~
foo.cc: In function ‘int main()’:
foo.cc:20:9: error: ‘cin’ was not declared in this scope
20 | cin>>s;s+=",";
| ^~~
foo.cc:20:14: error: ‘s’ was not declared in this scope
20 | cin>>s;s+=",";
| ^
foo.cc:23:25: error: ‘st’ was not declared in this scope; did you mean ‘std’?
23 | st+=s[i];
| ^~
| std
foo.cc:26:34: error: ‘st’ was not declared in this scope; did you mean ‘std’?
26 | if(check(st))cout<<s<<endl;
| ^~
| std
foo.cc:26:36: error: ‘check’ cannot be used as a function
26 | if(check(st))cout<<s<<endl;
| ^
foo.cc:26:38: error: ‘cout’ was not declared in this scope
26 | if(check(st))cout<<s<<endl;
| ^~~~
foo.cc:26:47: error: ‘endl’ was not declared in this scope
26 | if(check(st))cout<<s<<endl;
| ^~~~
foo.cc:27:25: error: ‘st’ was not declared in this scope; did you mean ‘std’?
27 | st="";
| ^~
| std