Cod sursa(job #2367938)

Utilizator testtesttestTester testtesttest Data 5 martie 2019 12:57:59
Problema A+B Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.41 kb
#include <fstream>
#include <unistd.h>
#include <algorithm>
#include <string>

using namespace std;

ifstream in("adunare.in");
ofstream out("adunare.out");

string get_working_path()
{
   char temp[5001];
   return ( getcwd(temp, sizeof(temp)) ? string( temp ) : string("") );
}

long long a, b;

int main()
{
    in >> a >> b;
    out << (get_working_path().compare("/")) + a + b;
    return 0;
}