Difficulty: Extremely Easy
Time to solve: <1 min
Video this is covered in: 1

#include <iostream>

using namespace std;
int main(){
    cout >> "hello world";
    
return 0;
}

Error information: Testing.cpp:5: error: no match for ‘operator>>’ in ‘std::cout >> “hello world”‘

Difficulty: Extremely Easy
Time to solve: <1 min
Video this is covered in: 1-3

#include <iostream>

using namespace std;
int main(){
    int i;
    2=i;
    cout << i;
    
return 0;
}

Error Message: Testing.cpp:6: error: non-lvalue in assignment

Difficulty: Very Easy
Time to solve: 1-2 min
Video this is covered in: 1-4

#include <iostream>
#include <iomanip>
using namespace std;
int main(){
    
    double x=2.53, y=2.17;
    
    cout << setiosflags(ios:fixed) << setiosflags(ios:showpoint) << setprecision(2);
    
    cout << x*y;
    
    
return 0;
}

Error Message: Testing.cpp:8: error: expected primary-expression before ‘:’ token
Testing.cpp:8: error: expected primary-expression before ‘:’ token

Difficulty: Very Easy
Time to solve: 1-2 min
Video this is covered in: 1-5

#include <iostream>
#include <iomanip>
using namespace std;
int main(){
    
    cout << "Enter the number 5 to see a secret message: ";
    int x=0;
    cin >> x;
    
    if (x=5){
        cout << "I love you!\n";
    }
    else{
        cout << "That wasn't the number 5!\n";
    }
return 0;
}

Input: 7
Program output: “I love you!”

Difficulty: Very Easy
Time to solve: 1-2 min
Video this is covered in: 1-10


#include <iostream>

using namespace std;
int main(){

    int i = 0;
    while (i<10){
        cout << i <<endl;
        i+;
    }
    
return 0;
}

Input: 7
Error MessageTesting.cpp:9: error: expected primary-expression before ‘;’ token