seri/gettc

AddElectricalWiresRunner.cpp:1:20: fatal error: topcoder: No such file or directory

Closed this issue · 5 comments

My AddElectricalWiresRunner.cpp looks like

include

using namespace TopCoder;

include "AddElectricalWires.cpp"

include

using namespace std;

int main(int argc, char const *argv[]) {
try {
ifstream ifs(argv[1]);
vector wires; read(ifs, wires); next(ifs);
vector gridConnections; read(ifs, gridConnections);
ifs.close();

    ofstream ofs(argv[2]);
    show(ofs, maxNewWires(wires, gridConnections));
    ofs.close();
} catch (exception &e) {
    cerr << e.what() << endl;
}
return 0;

}
I have all the required softwares installed including boost.How can this issue be figured out?

I got this when I did make demo in the /solve/cpp

seri commented

You don't actually need boost except if you want to write custom unit tests. Anyway, I need to narrow down. Can you find the file $HOME/.gettc/include/topcoder in your system?

Can we place this folder as it is without any need of gem install.What I have done is:I am facing issues while I call gem install gettc like cannot find zlib in fedora.So I did gem install in Windows and downloaded all the questions using a bat script.Now I copied these downloaded folders in fedora thinking gettc was required just during download.Can I just copy the gettc folder in fedora?If yes can you please upload it too.

seri commented

The content of the .gettc directory is exactly like this: https://github.com/seri/gettc/tree/master/dist

Thank you..it worked.Great gem.Loved it.