ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1001. Reverse Root

Why "Compilation error"?
Posted by Jimbo 14 Jun 2015 09:34
#include <iostream>
#include <vector>
#include <cmath>


using std::cout;
using std::cin;
using std::vector;
using std::endl;


int _tmain(int argc, _TCHAR* argv[])
{
    long long number;
    vector <long long> s;
    while (cin >> number)
    {
        s.push_back(number);
    }
    for (int i = s.size() - 1; i >= 0; --i)
    {
        cout << sqrt((long double)s[i]) << endl;
    }
    return 0;
}

uyyuzk-abb69e.cpp(12) : error C2061: syntax error : identifier '_TCHAR'

Edited by author 14.06.2015 09:40