I have been at this for hours now, and I cant get the damn thing to work. every time I try to just stuff that should work it comes back with weird errors. Please help I have no idea how to fix it. Ill put the errors i get at the bottom of the code.
#include <stdio.h>
#include <stdlib.h>
void arithmeticSeque nce(void) {
int a = 1;
int y = 11;
int k;
printf("Arithme tic sequence: ");
for (k=0; k<10; k++) {
printf("%5d", a);
a = a + y;
} /*for*/
printf("\n");
} /*artithmeticSeq uence*/
void harmonicSequenc e(void) {
printf("Harmoni c sequence: ");
printf("print sequence\n");
}
void fibonacciSequen ce(void) {
printf("Fibonac ci sequence: ");
printf("print sequence\n");
}
void leonardoSequenc e (void) {
printf("Leonard o sequence: ");
printf("print sequence\n");
}
int main() {
printf("main\n" );
arithmeticSeque nce();
harmonicSequenc e();
fibonacciSequen ce();
leonardoSequenc e();
return EXIT_SUCCESS;
} /*main*/
//Errors
Description Resource Path Location Type
cannot open output file Sequences Assingnment.exe : Permission denied Sequences Assingnment C/C++ Problem
Description Resource Path Location Type
Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings MinGW] options C/C++ Scanner Discovery Problem
Description Resource Path Location Type
Program "g++" not found in PATH Sequences Assingnment Project Properties, C++ Preprocessor Include.../Providers, [CDT GCC Built-in Compiler Settings MinGW] options C/C++ Scanner Discovery Problem
#include <stdio.h>
#include <stdlib.h>
void arithmeticSeque nce(void) {
int a = 1;
int y = 11;
int k;
printf("Arithme tic sequence: ");
for (k=0; k<10; k++) {
printf("%5d", a);
a = a + y;
} /*for*/
printf("\n");
} /*artithmeticSeq uence*/
void harmonicSequenc e(void) {
printf("Harmoni c sequence: ");
printf("print sequence\n");
}
void fibonacciSequen ce(void) {
printf("Fibonac ci sequence: ");
printf("print sequence\n");
}
void leonardoSequenc e (void) {
printf("Leonard o sequence: ");
printf("print sequence\n");
}
int main() {
printf("main\n" );
arithmeticSeque nce();
harmonicSequenc e();
fibonacciSequen ce();
leonardoSequenc e();
return EXIT_SUCCESS;
} /*main*/
//Errors
Description Resource Path Location Type
cannot open output file Sequences Assingnment.exe : Permission denied Sequences Assingnment C/C++ Problem
Description Resource Path Location Type
Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings MinGW] options C/C++ Scanner Discovery Problem
Description Resource Path Location Type
Program "g++" not found in PATH Sequences Assingnment Project Properties, C++ Preprocessor Include.../Providers, [CDT GCC Built-in Compiler Settings MinGW] options C/C++ Scanner Discovery Problem
Comment