0
Unknown error
i keep getting an error i've never seen before and it has me beat. Could you help me? Thanks // P.s. Im a beginner #include <iostream> using namespace std; int main() { int A; bool B; cin >> B; cin >> A; if (A == 0) { cout << "wrong password";} endl; return 0; }
4 ответов
+ 4
endl; cannot be used alone.
It should be like-
cout<<endl;
or the way Muhammed Arshad shows.
+ 4
endl; cannot be used alone.
It should be like-
cout<<endl;
or the way Muhammed Arshad shows.
+ 1
There is a small mistake while using endl.
the corrected pgm is
#include <iostream>
using namespace std;
int main()
{
int A;
bool B;
cin >> B;
cin >> A;
if (A == 0)
{ cout << "wrong password"<<endl;}
return 0;
}
0
oooh thanks so much I didn't notice that lol