foo.cpp:1:1: error: 'include' does not name a type
include<iostream>
^
foo.cpp: In function 'int main()':
foo.cpp:12:38: error: 'scanf' was not declared in this scope
scanf("%d%d%d%d%d",&k,&x1,&x2,&x3,&x4);
^
foo.cpp:20:9: error: 'j7' was not declared in this scope
js=(100-j7)x22;
^
foo.cpp:20:12: error: expected ';' before 'x22'
js=(100-j7)x22;
^
foo.cpp:21:12: error: 'm9' was not declared in this scope
js=js+(100-m9)x3;
^
foo.cpp:21:15: error: expected ';' before 'x3'
js=js+(100-m9)x3;
^
foo.cpp:22:14: error: expected ')' before 'x4'
js=js/((10+n)x4);
^
foo.cpp:23:11: error: 'i2' was not declared in this scope
js=js+(20-i2)x1;
^
foo.cpp:23:14: error: expected ';' before 'x1'
js=js+(20-i2)x1;
^
foo.cpp:27:20: error: 'printf' was not declared in this scope
printf("%0.3lf",max);
^