#include <iostream>
#include <vector>
#include <algorithm>

int main() {
    auto add = [](int a, int b) -> int{
        return a+b;
    };

    int ret = add(5,8);

    std::cout<<ret<<std::endl;

    std::vector<int> vec = {3, 1, 4, 1, 5, 9};
    std::sort(vec.begin(), vec.end(), [](int a, int b) -> int{
        return a>b;
    });

    for(int &n: vec){
        std::cout<<n<<std::endl;
    }

}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: