computer science

posted by .

ineed help with c++.
i am using code blocks and i have a problem with the compiler.

when I run this code ¡é


# include <iostream>

using namespace std;

int main()
{
cout<<"Hello World!"<<endl

return(0);
}


this message keep pops up. ¡é


"It seems that this file has not been built yet. Do you want to build it now? (Yes)/(No)/(Cancel)"

this message only dissapears when i click no or cancle.

and they give me this message. ¡é

mingw32-g++.exe -fexpensive-optimizations -Os -O3 -O2 -O1 -O -Wmain -pedantic-errors -pedantic -w -Wfatal-errors -W -Wall -ansi -pg -g -c "D:\Grade 12 Computer Science\CodeBlocks\hello world.cpp" -o "D:\Grade 12 Computer Science\CodeBlocks\hello world.o"
Execution of 'mingw32-g++.exe -fexpensive-optimizations -Os -O3 -O2 -O1 -O -Wmain -pedantic-errors -pedantic -w -Wfatal-errors -W -Wall -ansi -pg -g -c "D:\Grade 12 Computer Science\CodeBlocks\hello world.cpp" -o "D:\Grade 12 Computer Science\CodeBlocks\hello world.o"' in 'D:\Grade 12 Computer Science\CodeBlocks' failed.
Nothing to be done.

Checking for existence: D:\Grade 12 Computer Science\CodeBlocks\hello world.exe
Executing: D:\Grade 12 Computer Science\CodeBlocks/cb_console_runner.exe "D:\Grade 12 Computer Science\CodeBlocks\hello world.exe" (in D:\Grade 12 Computer Science\CodeBlocks)
Process terminated with status -1073741510 (3 minutes, 40 seconds)


can someone tell me what i need to do to solve the problem?

thanks

  • computer science -

    In computer science question which involve compilation problems, it is important to indicate the name of the compiler, version, and operating system.

    In any case, you need a semi-colon after every C++ statement, and one is missing after endl.

    If that doesn't solve your problem, post again with full details.

    Note: if you are using dev C++, you will see a black screen appear for about 1/10th of a second and disappears. That is because there is nothing to halt the screen to give you time to read the text displayed. This is a programming problem.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. computer science

    Algorithm for Binomial Numbers Task Binomial numbers (or binomial coefficients) are important positive integers that arise frequently in computing and mathematics. A function to compute binomial coefficients will have two inputs: n …
  2. C++ Programming

    I have to redo programming exercise 5 of chapter 9 using dynamic arrays. but I have the information but I don't know how to use it in a dynamic arrays please help. //Chapter 9: Programming Exercise 5 #include <iostream> #include …
  3. C++ Algorithms

    Binomial numbers (or binomial coefficients) are important positive integers that arise frequently in computing and mathematics. A function to compute binomial coefficients will have two inputs: n and k. The corresponding coefficient …
  4. C++

    I am having trouble identifying the flaws in my code. I need to created a program that calculates the rainfall for a given year in months. I needed it to show the total amount of rain for the year, the average monthly rainfall, and …
  5. C++ if else problem, please look

    It compiles but it doesn't work. can you tell me what i did wrong?
  6. programming C++

    Write a program that reads test scores up to 30 into an array. sentinel will stop when -1 is entered. Write functions that: 1. read the scores into arrays 2. computes the distribution based on whether they are As, Bs and so on 3. find …
  7. Programing

    Write a full program that reads in an arbitrary sequence of integers from the standard input, and writes them to the standard output in sorted order and with all duplicates removed. You may assume the input contains at most 100 integers …
  8. itc c++

    can any one please dry run this code #include<iostream> using namespace std; int main() { intnum,factor=1,temp; cout<<"Enter any integer value"<<endl; cin>>num; //number given by the user is 10123. temp=num; …
  9. C++

    I am trying to create a program that displays shipping charges for two region codes. The region code has to have exactly 3 characters (the letter A or B followed by two numbers). Display a message if invalid region code is entered. …
  10. Computer Science

    Please suggest corrections to this code: why isn't the loop continuing ANY help is appreciated! #include <iostream> #include <iomanip> using namespace std; int main () { double slope; int yint; int x; double cord; double …

More Similar Questions