1
resposta

Não compila

Erro:

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\fabiana.marucci\Desktop\Jogo_adivinhacao> g++ jogodaadivinhacao.cpp -o jogodaadivinhacao.out jogodaadivinhacao.cpp: In function 'int main()': jogodaadivinhacao.cpp:4:10: error: 'cout' is not a member of 'std' 4 | std::cout << "**"; | ^~ jogodaadivinhacao.cpp:1:1: note: 'std::cout' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | jogodaadivinhacao.cpp:5:10: error: 'cout' is not a member of 'std' 5 | std::cout << "Bem-vindos ao jogo de adivinhação!"; | ^ jogodaadivinhacao.cpp:5:10: note: 'std::cout' is defined in header ''; did you forget to '#include '?PS C:\Users\fabiana.marucci\Desktop\Jogo_adivinhacao> g++ jogodaadivinhacao.cpp -o jogodaadivinhacao.out jogodaadivinhacao.cpp: In function 'int main()': jogodaadivinhacao.cpp:4:10: error: 'cout' is not a member of 'std' 4 | std::cout << "**"; PS C:\Users\fabiana.marucci\Desktop\Jogo_adivinhacao> g++ jogodaadivinhacao.cpp -o jogodaadivinhacao.exe jogodaadivinhacao.cpp: In function 'int main()': jogodaadivinhacao.cpp:4:10: error: 'cout' is not a member of 'std' 4 | std::cout << "**"; PS C:\Users\fabiana.marucci\Desktop\Jogo_adivinhacao> g++ jogodaadivinhacao.cpp -o jogodaadivinhacao.out jogodaadivinhacao.cpp: In function 'int main()': jogodaadivinhacao.cpp:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 6 | cout << "***"; | ^~ | std::cout In file included from jogodaadivinhacao.cpp:2: C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/10.3.0/include/c++/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output | ^ PS C:\Users\fabiana.marucci\Desktop\Jogo_adivinhacao> g++ jogodaadivinhacao.cpp -o jogodaadivinhacao.exe jogodaadivinhacao.cpp: In function 'int main()': jogodaadivinhacao.cpp:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 6 | cout << "***"; | ^~ | std::cout In file included from jogodaadivinhacao.cpp:2: C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/10.3.0/include/c++/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output

1 resposta

Posta aqui o seu código www.youtube.com/tematicadenerd