Giter VIP home page Giter VIP logo

caide's People

Contributors

aybassiouny avatar codereport avatar jmerle avatar metaflow avatar predelnik avatar slycelote avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

caide's Issues

duplicates of typedef and macros

(duplicates) including more than one custom library with some macroses and typedefs (some may exist in more than one library) leads to appearing of duplicates of macroses and typedefs.

and also all macroses and typedefs aren't grouped together and separated by functions.

i suggest to group all macroses together and remove duplicates and then write them in submission file.
and the same for typedefs.

_USE_MATH_DEFINES gets removed

After a bit of playing around I've found the following workaround (just to use macro in next line):

   #define _USE_MATH_DEFINES
   _USE_MATH_DEFINES

While workaround is not actually that bad, it may still be unobvious. So probably it's at least advisable to add it to readme or maybe fix it other way if it is possible.

httpServer doesn't exit on Return key in Windows

While running caide httpServer and then clicking on the competitive companion, the problem gets parsed successfully, and then if I hit enter to exit, it doesn't exit and the server runs forever, How to stop this???

And How to debug my code when not using visual studio, I generally use print statements to know what is happening but caide doesn't keep execute those cerr statements and hence I cannot debug the code...

So what to do in this case??

Caide for docker

Caide have been an extremely helpful tool for me, primarily its ability to create single file ready to submit that uses code from library headers. It has been hard to use it on different platforms, since compiling is not easy/fast, but you have released binaries. The workaround I found was using docker to run such binaries. The result was this docker wrapper which I wanted to share: https://github.com/mfornet/caide-docker

std::to_string cannot be used due to weird mingw 4.8 headers.

Using std::to_string leads to failed clang parsing.

I couldn't really figure out what is valid fix or workaround for this. Seems like defining _GLIBCXX_USE_C99 should help but then it results in bunch of other errors. Maybe just updating headers would help but I don't know how hard it is exactly.

Support C++17

Can't figure out how to support C++14 and C++17. I have changed the ISO standard to C++17 for each of the projects:

  • cf####A
  • cpplib
  • submission

But I still get an error on the concat.cpp file. Maybe there is a way to do it but can't figure it out.

VSCode extension

I tried installing caide on VSCode but I found no such extensions in the marketplace. I'm using Ubuntu 18.04. Is this not supported for Linux or is there something wrong with my machine?

I cannot find any C# README.

it would be really helpful, if their was a README for c#.

I am currently using VS2019, Extension is working fine for me, on default it is creating c++ files, but you can change language.

c++: Incorrect removal of explicitly defaulted/deleted methods

/* solution.cpp */
class Test {
public:
    Test(int n) : n(n) {}
private:
    Test() = delete;
    int n;
};

void solve(istream& in, ostream& out) {
    Test a(1000);
}

/* submission.cpp */

class Test {
public:
    Test(int n) : n(n) {}
private:
     = delete;
    int n;
};

void solve(istream& in, ostream& out) {
    Test a(1000);
}

c++: Methods called from used destructors are removed

/* Solution file */

class Test {
public:
        Test(int n) : n(n) {}
        ~Test() {
                print();
        }
        void print() {
                cout << n << endl;
        }
private:
        int n;
};

void solve(istream& in, ostream& out) {
        Test a(1000);
}

/* Submission.cpp: no method "Test::print()" that is called from destructor (destructor is not called explicitly, only by default on exit from function solve() )  */

class Test {
public:
        Test(int n) : n(n) {}
        ~Test() {
                print();
        }
private:
        int n;
};

void solve(istream& in, ostream& out) {
        Test a(1000);
}

Caide should not remove constructor from TopCoder solution

I tend to have put some precalculations into the constructor for TopCoder solutions. Unfortunately, I found out the hard way that without "caide keep" comment it simply removes that constructor. I suggest 2 options:

  1. Make it possible to configure the topcoder template in such way that it always adds default constructor with the "keep" comment.
  2. Somehow magically figure out that in topcoder that constructor will be called. While we are at it maybe the same can be done with the main method.

Console is waiting for input.

when I have tried to Run Tests Command, the console screen was waiting for my input rather than executing the stored testcases.

Including Prewritten Headers

In the readme, it was told to put all my pre-written headers in the cpplib directory.
What if we put the whole directory in the cpplib directory so will it be able to parse the other headers as I have something like this ...
numbers/
/...Headers
Graphs/
/...Headers

How to install libcaide?

@slycelote, should I follow the instructions on the Install.txt file inside the libcaide or should I just add the .exe file from the realeases page to my $PATH and run it from there?

Code analysis errors

1>LINK : fatal error LNK1104: cannot open file 'D:\cp\cpp\CAIDESLN\cpplib\Debug\cpplib.lib'
1>Done building project "AWatermelon.vcxproj" -- FAILED.
THIS IS AN error I am continuously getting, how to fix this.

How to modify the automatically generated code template

The automatically generated *.cpp files do not contain some necessary header files, so I have to add #include<cctype> every time to use std::isupper,
Is there a way to modify the generated template?
Where should I modify?

CMake support

It should be possible to create CMakeLists files automatically when new problems are added.

Display running time per test in the report

Sorry to disturb/interrupt your beautiful work on caide, but I wanted to say something.
While running the tests, can you do something so as it shows the running time of our code, it helps us understand better the efficiency of our solution
Sorry for the poor English, since it is not my native language.
Thanks...
Happy Coding...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.