Skip to content
Open

BOT #156

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe build active file",
"command": "C:\\MinGW\\bin\\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
Binary file added C++/a.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions C++/s1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ using namespace std;
int reverse(int x) {
long r=0;
while(x){
r=r*10+x/10;
r=r*10+x%10;
x=x/10;
}
return r;
}

int main(void){
cout << reverse(12345) << endl;
}
}
2 changes: 1 addition & 1 deletion C++/s2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main(){
for(int i=0; i < myVec.size(); i++){
std :: cout << myVec[i] << std :: endl;
}
std :: cout << "Element at index 3: "<< myVec.at(3) << std::endl;
std :: cout << "Element at index 3: "<< myVec.at(2) << std::endl;

return 0;
}
2 changes: 1 addition & 1 deletion C++/s4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include<iostream>
#include <bits/stdc++.h>
using namespace std;
#define Random(n) random()%n
#define Random(n) random()%n

int random(){
srand(time(0));
Expand Down
2 changes: 1 addition & 1 deletion C++/s5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace std;

int main(void){
string string1 = "Hello";
string string2 = "Horld";
string string2 = "HellO";

if (string1 == string2)
cout << "Equal";
Expand Down
Binary file added C++/s5.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion C++/s6.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// to find the largest sum of subarray
#include<iostream>
#include<limits.h>
using namespace std;

int maxSubArraySum(int a[], int size)
Expand All @@ -15,4 +16,4 @@ int maxSubArraySum(int a[], int size)
max_ending_here = max_so_far;
}
return max_so_far;
}
}
4 changes: 2 additions & 2 deletions Web-Dev/css-is-awesome/initial.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ body {

.container {
background: white;
width: 120px;
height: 200px;
width:auto;
height: auto;
padding-inline: 0.3rem;
font-size: 3rem;
border-radius: 0.3rem;
Expand Down
1 change: 1 addition & 0 deletions Web-Dev/flex-even-columns/initial.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ section>p {
.flex-even-columns {
display: flex;
gap: 2rem;
justify-content: space-between;
}

.flex-even-columns>* {
Expand Down
3 changes: 2 additions & 1 deletion Web-Dev/pseudo-elements/initial.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ nav {
transition: ease-in-out 200ms;
}

.nav-link:hover::after {
.nav-link:hover {
width: 100%;
text-decoration: underline;
}


Expand Down