samedi 28 février 2015

"Compilation failed." geany c++11 windows 8.1

I try to compile a small program in C + + but the compilation failed! Here's the code:



#include <iostream>
#include <vector>

int main()
{
std::vector<std::vector<double>> matrice { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} };

std::cout << "Bonjour, voici une matrice:" << std::endl;
for (auto element : matrice) {
for (auto val : element) {
std::cout << val << " ";
}
std::cout << std::endl;
}
std::cout << std::endl;

return 0;


I installed MinGW on Windows


under Geany:



g++ -std=c++11 -Wall -c "%f"
g++ -std=c++11 -Wall -o "%e" "%f"

But the compilation failed


Thank you in advance for your help.


Aucun commentaire:

Enregistrer un commentaire