Coder Social home page Coder Social logo

deepaksuthar40128 / code-plumber Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 9.35 MB

An online open source IDE for multiple languages

Home Page: https://code-plumber.vercel.app

License: MIT License

Dockerfile 0.28% Shell 0.61% JavaScript 4.23% HTML 1.80% TypeScript 82.33% CSS 1.89% C 0.71% C++ 0.13% Java 0.07% Python 0.02% Go 7.91%
bash bash-script code-editor code-mirror golang ide nodejs reactjs

code-plumber's Introduction

Hi ๐Ÿ‘‹, I'm Deepak Suthar

A passionate MERN developer from India

Coding

deepaksuthar40128

  • ๐Ÿ’ฌ Ask me about Node.js,Next.js,React,SCSS,Mongo DB,JS,TS

Connect with me:

deepaksuthar40128 one_deepak deepaksuthar40128 cro_poder

Languages and Tools:

bootstrap c cplusplus css3 express html5 java javascript matlab mongodb nodejs postman pug

deepaksuthar40128

ย deepaksuthar40128

code-plumber's People

Contributors

deepaksuthar40128 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

code-plumber's Issues

Runtime Error

Blank screen whenever code throws a runtime error.

System: Windows-11
Browser: Chrome 122
Language: CPP
Code:

#include <bits/stdc++.h>
#define int long long
using namespace std;

inline int nxt()
{
    int x;
    cin >> x;
    return x;
}

int solve()
{
    int n = nxt();
    int m = nxt();
    cin >> n >> m;
    cout << "? 1 1" << endl;
    int a = nxt();
    a += 2;
    cout << "? " << n << " 1" << endl;
    int b;
    cin >> b;
    b -= (n - 1);
    b = -b;
    int x = (a + b) / 2;
    int y = a - x;
    if (x >= 1 && x <= n && y >= 1 && y <= m)
    {
        cout << "? " << x << " " << y << endl;
        int out;
        cin >> out;
        if (out == 0)
        {
            cout << "! " << x << " " << y;
        }
        else
        {
            cout << "? " << n << " " << m << endl;
            int c;
            cin >> c;
            c -= (n + m);
            c = -c;
            a = c;
            x = (a + b) / 2;
            y = a - x;
            cout << "! " << x << " " << y;
        }
    }
    else
    {
        cout << "? " << n << " " << m << endl;
        int c;
        cin >> c;
        c -= (n + m);
        c = -c;
        a = c;
        x = (a + b) / 2;
        y = a - x;
        cout << "! " << x << " " << y;
    }
}
signed main()
{
    int t;
    cin >> t;
    while (t--)
    {
        solve();
        cout << endl;
    }
    return 0;
}

formatting error in c++ code

curly bracket misformatting on pairs in c++

ex:
#include<bits/stdc++.h>
using namespace std;
int main(){
pair<int,int>p = {4,5};
}

system: Windows 10
Browser: Chrome

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.