Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
varunkumartp committed Jul 22, 2021
1 parent 60cb979 commit 5f0eaa4
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.18362.0",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "cl.exe - Build and debug active file",
"type": "cppvsdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"console": "externalTerminal",
"preLaunchTask": "C/C++: cl.exe build active file"
}
]
}

7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files.associations": {
"ostream": "cpp",
"stack": "cpp"
},
"C_Cpp.errorSquiggles": "Disabled"
}
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using namespace std;
#define N 10 // Column size of maze
#define M 10 // Row size of maze

int n = N, m = M; // maze of n*m matrix
int n = N , m = M; // maze of n*m matrix
int ix=0,iy=0; // initial position of rat
int fx=9,fy=0; // coordinates of food
bool visited[N][M]; // Matrix to represent visited coordinates
Expand Down Expand Up @@ -109,4 +109,4 @@ int main() //Main function
cout << "No Path Found!" << '\n';

return 0;
}
}
Binary file added main.exe
Binary file not shown.
Binary file added vc140.pdb
Binary file not shown.

0 comments on commit 5f0eaa4

Please sign in to comment.