Topic de JeunesseDivine :

Des KHEYS forts en C++ ici ?

Supprimé
c'est un type ça long long ?

Le 20 juillet 2021 à 15:05:58 :
si tu nous donnez l'erreur du compilateur

https://image.noelshack.com/fichiers/2021/29/2/1626786201-ffvfvdvdfvdf.png

et sur repl.it, ca m'affiche aucune reponse :hap:

Le 20 juillet 2021 à 15:06:27 :
c'est un type ça long long ?

de mémorie : int = 16bits, long 32bits et long long 64 bits

ah oui t'as oublié de retourner un entier le c++ fag https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png
la fonction c'est int main() :d) tu dois retourner un truc, genre return 0 c'est bien https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png

pour info, avec le compilo microsoft sur une machine64bit avec un systeme d'exploitation 64bit

https://docs.microsoft.com/fr-fr/cpp/cpp/data-type-ranges?view=msvc-160

Peut-être que ton code ne marche pas pour a<0.

Le 20 juillet 2021 à 15:08:16 :
ah oui t'as oublié de retourner un entier le c++ fag https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png

% retourne toujours un entier

Le 20 juillet 2021 à 15:08:53 glossateurfou a écrit :
la fonction c'est int main() :d) tu dois retourner un truc, genre return 0 c'est bien https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png

Ahi je connais à peine le c et cette erreur https://image.noelshack.com/fichiers/2021/09/2/1614646545-lacoste-airpods-ent.png

Au pire mets un void main(void) https://image.noelshack.com/fichiers/2021/27/6/1625950615-limule-2-zoom.png

Le 20 juillet 2021 à 15:08:53 :
la fonction c'est int main() :d) tu dois retourner un truc, genre return 0 c'est bien https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png

Toujours la meme erreur
Et j'avais fait des fonctions sans le return 0 tout à l'heure et ca fonctionnais bien + le bot a validé

Developpeur JS: "J'ai une idée d'application" https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png
Dev C++: "J'ai une idée d'application" https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
Ils décident de créer une application de messagerie en ligne type Discord/Skype https://image.noelshack.com/fichiers/2016/38/1474550815-1474299886-picsart-09-20-05-35-43.png
Dev JS: "Bon je vais telecharger Electron pour le front j'éspère que ça va marcher https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png "
Dev C++: "Qt ou rien, c'est parti pour tester les examples du repo https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
1 heure plus tard.. https://image.noelshack.com/fichiers/2016/38/1474550815-1474299886-picsart-09-20-05-35-43.png
Dev JS: "Wow ça marche! Je vais prendre Vue.JS pour le front-end, et NodeJS pour le back-end comme ça je suis tranquille https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png "
Dev C++: "
https://image.noelshack.com/fichiers/2020/35/4/1598501993-d6gau.png https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
"Même l'exemple le plus basique ne marche pas sur mon PC? https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png"
"Bon pas grave on va voir d'ou ça vient https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
1 jour plus tard.. https://image.noelshack.com/fichiers/2016/38/1474550815-1474299886-picsart-09-20-05-35-43.png
Developpeur JS: "Bon j'ai un prototype qui marche, j'ai juste copié collé du CSS pour que ça soit pas trop moche, au moins c'est déjà un projet viable" https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png
"Bon du coup je vais travailler sur le back un peu plus https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png "
"npm i ws https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png "
"Ok c'est parti https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png "
Dev C++ "Ok en fait le problème vient de la dépendance MINGNU-MWN version 9 du Visual Project https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
"Youpi! J'ai la toolkit qui marche et j'ai le bouton qui est affiché
https://image.noelshack.com/fichiers/2020/35/4/1598502405-qsdqdq.png https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
1 mois plus tard.. https://image.noelshack.com/fichiers/2016/38/1474550815-1474299886-picsart-09-20-05-35-43.png
Developpeur JS: "Bon j'ai fini je pense
https://image.noelshack.com/fichiers/2020/35/4/1598502563-riot-web-large.png " https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png
"En plus ça tourne sous navigateur, sous Windows, sous Mac, sous Linux, sous micro-onde, sous applewatch, sous google glass, c'est cool quand même je vais pouvoir lancer un buisness pour faire un peu d'argent " https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png
"Je vais l'appeler DiSkype, ça va forcer sur la controverse et je vais me faire encore plus de thune https://image.noelshack.com/fichiers/2017/51/3/1513764782-sticker-risitassourire.png "
Dev C++ " Bon j'espère que ça va marcher maintenant
https://image.noelshack.com/fichiers/2020/35/4/1598502703-dbus-chat-example.png
https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
https://image.noelshack.com/fichiers/2020/35/4/1598502774-qppcx.jpg https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png
1 mois plus tard.. https://image.noelshack.com/fichiers/2016/38/1474550815-1474299886-picsart-09-20-05-35-43.png
Dev C++ "Bon j'ai fini https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png"
"Il est temps d'en faire la pub sur internet https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
"Reddit -> Poster -> 'A new lightweight chat software focused on low-end devices' https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
"Héhé ça tourne sous 20 Mo de ram c'est pas beau ça? https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png https://image.noelshack.com/fichiers/2017/33/7/1503263185-risitas-geek.png "
.
...
.....
"Première réponse (5 upvotes) : c'est quoi ta merde c'est hyper moche et ça tourne même pas sous mon mac https://image.noelshack.com/fichiers/2019/46/1/1573482939-123132132.png "
"Deuxième réponse (3 upvotes) : C'est un genre de DiSkype eco+? https://image.noelshack.com/fichiers/2017/11/1489483754-cr7-1.png "
"Hein? C'est quoi diskype? https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
https://image.noelshack.com/fichiers/2020/35/4/1598503375-azeaeaz.png
10 ans plus tard.. https://image.noelshack.com/fichiers/2016/38/1474550815-1474299886-picsart-09-20-05-35-43.png
https://image.noelshack.com/fichiers/2020/35/4/1598502774-qppcx.jpg https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png
"Alors t'as bientot fini esclave? https://image.noelshack.com/fichiers/2019/19/4/1557427812-issou-hop.png "
"Oui monsieur https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png "
..
...
https://image.noelshack.com/fichiers/2017/27/2/1499168768-12h11legroslard.png
https://image.noelshack.com/fichiers/2020/35/4/1598503910-kahwc.png https://image.noelshack.com/fichiers/2017/22/1496373187-asthma.jpg

Le 20 juillet 2021 à 15:11:01 :

Le 20 juillet 2021 à 15:08:53 :
la fonction c'est int main() :d) tu dois retourner un truc, genre return 0 c'est bien https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png

Toujours la meme erreur
Et j'avais fait des fonctions sans le return 0 tout à l'heure et ca fonctionnais bien + le bot a validé

c'est pas normal clé https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png

C'est niveau zéro en CPP, je comprends pas pourquoi tu galères ?

include <iostream>
using namespace std;

int main() {
signed long long a;
unsigned long b;
cin >> a >> b;
cout << a%b;
}

remainder = reste donc c'est bien le modulo qui faut

Le 20 juillet 2021 à 15:11:53 :
C'est niveau zéro en CPP, je comprends pas pourquoi tu galères ?

aussi il utilise un compilateur qui vient tout droit de l'enfer, personne le connait

int main(){
long a;
unsigned long b;
cout >> "Entrez a : " >> endl;
cin << a;
cout >> "Entrez b : " >> endl;
cin << b;
cout << "Résultat : %d" << a%b;
return 0;
}

Je ne suis pas sûr du tout, je suis un dev C https://image.noelshack.com/fichiers/2018/13/4/1522325846-jesusopti.png

Le 20 juillet 2021 à 15:11:46 :

Le 20 juillet 2021 à 15:11:01 :

Le 20 juillet 2021 à 15:08:53 :
la fonction c'est int main() :d) tu dois retourner un truc, genre return 0 c'est bien https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png

Toujours la meme erreur
Et j'avais fait des fonctions sans le return 0 tout à l'heure et ca fonctionnais bien + le bot a validé

c'est pas normal clé https://image.noelshack.com/fichiers/2019/02/3/1547043978-3347bab5-9a18-478c-9f0a-f66258753755.png

En cpp, int main() retourne 0 si non spécifié

Pourquoi t'as mis un unsigned igo ?
Sinon le reste y'a pas de problème, donc c'est peut être ton compilateur qui comprend pas le type de a%b

Données du topic

Auteur
JeunesseDivine
Date de création
20 juillet 2021 à 14:51:24
Date de suppression
20 juillet 2021 à 15:30:50
Supprimé par
Auteur
Nb. messages archivés
42
Nb. messages JVC
46
En ligne sur JvArchive 89