Language:
clang++
Source:
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int a, b;
cout <<"enter two number...: " << endl;
cin >>a >>b;
cout <<endl;
while (a > b){
cout <<a <<"is greater than" << b;
cout <<endl;
if (a > b){
cout
Errors:
source_file.cpp:15:8: error: expected ';' after expression
cout
^
;
source_file.cpp:15:8: error: expected '}'
source_file.cpp:14:13: note: to match this '{'
if (a > b){
^
source_file.cpp:15:4: warning: expression result unused [-Wunused-value]
cout
^~~~
source_file.cpp:15:8: error: expected '}'
cout
^
source_file.cpp:11:15: note: to match this '{'
while (a > b){
^
source_file.cpp:15:8: error: expected '}'
cout
^
source_file.cpp:5:33: note: to match this '{'
int main(int argc, char** argv) {
^
1 warning and 4 errors generated.
in this bot🤦♂️
Anonymous
Dima
swarnim
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter