Open Tejasvigupta opened 4 years ago
I've had this issue a few times, and there was something wrong with my g++ installation, I suggest you try compiling manually and see what happens.
that must be because of wrong code which you are trying to compile .do check your code as well before compiling
using namespace std;
int main(){
int n,a;
cin>>n;
vector
I've had this issue a few times, and there was something wrong with my g++ installation, I suggest you try compiling manually and see what happens.
Hi ,I tried compiling it on an online compiler and it worked fine there.
I've had this issue a few times, and there was something wrong with my g++ installation, I suggest you try compiling manually and see what happens.
Are you familiar with some good packages for c++ ? Please suggest some because I have been running into one or other error.
include <bits/stdc++.h>
using namespace std; int main(){ int n,a; cin>>n; vector v; for (int i=0; i<n;i++){ cin>>a; v.push_back(a); } for (int i=0 ;i<n ;i++){ cout<<v[i]; } } this is a simple code and it was working fine on online compiler
There are errors in here (and the formatting is bad).
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n, a;
vector<int> v;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
v.push_back(a);
}
for (int i = 0; i < n; i++) {
cout << v[i];
}
return 0;
}
try that
Also when I was having that error it was because of my float libraries being outdated in my g++ installation.
Also when I was having that error it was because of my float libraries being outdated in my g++ installation.
using namespace std; int main(){ int a=5; auto b=a; cout<<b; } I am not able to compile even this code. Should I reinstall atom or what? p.s I am new to c++.
The same problem me too
Also when I was having that error it was because of my float libraries being outdated in my g++ installation.
include
using namespace std; int main(){ int a=5; auto b=a; cout<<b; } I am not able to compile even this code. Should I reinstall atom or what? p.s I am new to c++.
#include <iostream>
using namespace std;
int main(){
int a=5;
auto b=a;
cout<<b;
}
If you can't compile with this plugin on Atom, try to do it just using MSYS and g++.
The smallest code that would compile (that I can think of and has at least 1 non-return statement) is:
int main() {
a = 0;
return a;
}
However, my windows defender thought it was a virus. You could also do:
#define A 0
int main() {
return A;
}
Today, I found a way to fix that #319
Can someone explain to me why when I compile a code I get this error: The error was thrown from the gpp-compiler package. What does that mean ? What I do?
[Enter steps to reproduce:]
Atom: 1.45.0 x64 Electron: 4.2.7 OS: Microsoft Windows 10 Home Single Language Thrown From: gpp-compiler package 3.0.7
Stack Trace
Uncaught Callback must be a function
Commands
Non-Core Packages