/in/foo.cc: In function 'int main()':
/in/foo.cc:6:9: error: 'cin' was not declared in this scope
6 | cin >> a >> b >> c >> d >> e >> f >> g >> h >> i;
| ^~~
/in/foo.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <stdio.h>
+++ |+#include <iostream>
2 | using namespace std;
/in/foo.cc:8:17: error: expected ',' or ';' before 'if'
8 | if (num==w){
| ^~
/in/foo.cc:10:18: error: 'else' without a previous 'if'
10 | }else{
| ^~~~
/in/foo.cc:11:25: error: 'cout' was not declared in this scope
11 | cout << a << '-' << b << c << d << '-' << e << f << g <<h << i << '-' << w;
| ^~~~
/in/foo.cc:11:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:7:13: warning: unused variable 'num' [-Wunused-variable]
7 | int num = a*1+b*2+c*3+d*4+e*5+f*6+g*7+h*8+i*9
| ^~~