Deutsch
Telegram

Thread/cpp_gcc@rextester_bot

7 Nachrichten · –
C
C++ vs Python
/cpp_gcc@rextester_bot
    1. C
      C++ vs Python
      # include <iostream> using namespace std; int main () { int N,K,L=0,max,imax; cout<<"N="; cin>>N; cout<<"K="; cin>>K; int X[N],Y[K],Z[L]; for(int i=0; i<N; i++) { X[i]=rand()%N; } for(int i=0; i<N; i++) { if(X[i]>0) { Z[L]=X[i]; L++; } } for(int r=0; r<K; r++) { Y[r]=rand()%K; } for(int r=0; r<K; r++) { if(Y[r]>0) { Z[L]=Y[r]; L++; } } for(int j=0; j<L; j++) cout<<"Z["<<j<<"]="<<Z[j]<<endl; max=Z[0]; imax=0; for(int j=1; j<L; j++) { if(Z[j]>max) { max=Z[j]; imax=j; } } cout<<"max="<<max<<endl; cout<<"indeks="<<imax<<endl; return 0; } /stdin 5 6
        1. C
          C++ vs Python
          Hozir oʻqib olay
      1. G
        Errors: *** stack smashing detected ***: <unknown> terminated Abort signal from abort(3) (SIGABRT) Result: N=K=Z[0]=3 Z[1]=1 Z[2]=2 Z[3]=3 Z[4]=1 Z[5]=4 Z[6]=3 Z[7]=1 Z[8]=2 max=4 indeks=5 Tip: Mistake? Edit your message, I'll adjust my response.
CC++ vs PythonC++ vs Python@cpp_vs_python · Gruppe · Technik
114Mitglieder39 409Nachrichten im Index
Community-Feed In Telegram öffnen

Ein offener öffentlicher Feed aus dem Suchindex ChatCrawler — „Google für das öffentliche Telegram“; wird aktualisiert, während die Community gecrawlt wird. Zeiten in UTC.

Nur öffentliche Inhalte, offizielle Telegram-API. Über uns · FAQ · Grenzen des Index · Seite entfernen · Katalog · Suche · So zählen wir