foo.cc: In function ‘int main()’:
foo.cc:5:9: error: expected initializer before ‘cin’
5 | cin>>a>>b>>c;
| ^~~
foo.cc:7:17: error: ‘d’ was not declared in this scope
7 | d=a;
| ^
foo.cc:12:17: error: ‘d’ was not declared in this scope
12 | d=a;
| ^
foo.cc:17:17: error: ‘d’ was not declared in this scope
17 | d=b;
| ^
foo.cc:21:27: error: ‘c;’ was not declared in this scope
21 | cout<<a<<" "<<b<<" "<<c;
| ^~~
foo.cc:21:30: error: expected ‘}’ at end of input
21 | cout<<a<<" "<<b<<" "<<c;
| ^
foo.cc:3:11: note: to match this ‘{’
3 | int main(){
| ^