View Code of Problem 78

#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main(){
    string a[3];
    cin>>a[0]>>a[1]>>a[2];
    sort(a,a+3);
    cout<<a[0]<<endl;
    cout<<a[1]<<endl;
    cout<<a[2]<<endl;
    return 0;
}
/*
Main.cc: In function 'int main()':
Main.cc:8:15: error: 'sort' was not declared in this scope
     sort(a,a+3);
               ^
*/

Double click to view unformatted code.


Back to problem 78