+ 1

Unqualified id

#include <iostream> error in line 4; they say unqualified Id before "#include" using namespace std; "#include" { int a int b int c int d int e int f int g cout<<"Please enter two or more numbers and some symbols"; cin>>a>>b>>c>>d>>e>>f>>g return 0; }

22nd Apr 2017, 11:26 PM
mei
mei - avatar
5 ответов
+ 11
I think that instead of --> "#include"{ what you should write is --> int main(){
22nd Apr 2017, 11:32 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 10
Can you write it in code playground so i can fix it. by the way the fix is : #include <iostream> using namespace std; int main(){ then you have to add semicolon ";" in each declaration ex int a; or one line declaration ex int a, b, c;
22nd Apr 2017, 11:34 PM
Agus Mei
Agus Mei - avatar
+ 3
You also need a semi colon at the end of the cin line (just after the g)
22nd Apr 2017, 11:39 PM
Shane
0
find the lines!
24th Apr 2017, 5:24 AM
mei
mei - avatar