Detalii evaluare #54152672

Rezumat problemă

Se dă o matrice cu n linii şi n coloane şi elemente numere naturale. Calculaţi cel mai mare divizor comun al sumei elementelor de deasupra diagonalei principale și al sumei elementelor de sub diagonala principală.

Detalii

Problema CmmdcSum Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #54152672 Utilizator Aluas Florin Lucian (Aluas_Florin)
Fișier cmmdcsum.cpp Dimensiune 678 B
Data încărcării 20 Noiembrie 2024, 21:00 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

cmmdcsum.cpp:2:1: error: stray '\302' in program
 using namespace std;

 ^
cmmdcsum.cpp:2:1: error: stray '\240' in program
cmmdcsum.cpp:2:1: error: stray '\302' in program
cmmdcsum.cpp:2:1: error: stray '\240' in program
cmmdcsum.cpp:5:1: error: stray '\302' in program
 int main()

 ^
cmmdcsum.cpp:5:1: error: stray '\240' in program
cmmdcsum.cpp:8:1: error: stray '\302' in program
     int a[101][101],n,sum1=0,sum2=0;

 ^
cmmdcsum.cpp:8:1: error: stray '\240' in program
cmmdcsum.cpp:8:1: error: stray '\302' in program
cmmdcsum.cpp:8:1: error: stray '\240' in program
cmmdcsum.cpp:8:1: error: stray '\302' in program
cmmdcsum.cpp:8:1: error: stray '\240' in program
cmmdcsum.cpp:8:1: error: stray '\302' in program
cmmdcsum.cpp:8:1: error: stray '\240' in program
cmmdcsum.cpp:8:1: error: stray '\302' in program
cmmdcsum.cpp:8:1: error: stray '\240' in program
cmmdcsum.cpp:10:1: error: stray '\302' in program
     for(int i=1;i<=n;i++)

 ^
cmmdcsum.cpp:10:1: error: stray '\240' in program
cmmdcsum.cpp:10:1: error: stray '\302' in program
cmmdcsum.cpp:10:1: error: stray '\240' in program
cmmdcsum.cpp:10:1: error: stray '\302' in program
cmmdcsum.cpp:10:1: error: stray '\240' in program
cmmdcsum.cpp:10:1: error: stray '\302' in program
cmmdcsum.cpp:10:1: error: stray '\240' in program
cmmdcsum.cpp:10:1: error: stray '\302' in program
cmmdcsum.cpp:10:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
         for(int j=1;j<=n;j++) 

 ^
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:11:1: error: stray '\302' in program
cmmdcsum.cpp:11:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
             cin>>a[i][j];

 ^
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:12:1: error: stray '\302' in program
cmmdcsum.cpp:12:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
             if(i<j) 

 ^
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:15:1: error: stray '\302' in program
cmmdcsum.cpp:15:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
              if(i>j) 

 ^
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:19:1: error: stray '\302' in program
cmmdcsum.cpp:19:1: error: stray '\240' in program
cmmdcsum.cpp:21:1: error: stray '\302' in program
         

 ^
cmmdcsum.cpp:21:1: error: stray '\240' in program
cmmdcsum.cpp:21:1: error: stray '\302' in program
cmmdcsum.cpp:21:1: error: stray '\240' in program
cmmdcsum.cpp:21:1: error: stray '\302' in program
cmmdcsum.cpp:21:1: error: stray '\240' in program
cmmdcsum.cpp:21:1: error: stray '\302' in program
cmmdcsum.cpp:21:1: error: stray '\240' in program
cmmdcsum.cpp:21:1: error: stray '\302' in program
cmmdcsum.cpp:21:1: error: stray '\240' in program
cmmdcsum.cpp:21:1: error: stray '\302' in program
cmmdcsum.cpp:21:1: error: stray '\240' in program
cmmdcsum.cpp:21:1: error: stray '\302' in program
cmmdcsum.cpp:21:1: error: stray '\240' in program
cmmdcsum.cpp:21:1: error: stray '\302' in program
cmmdcsum.cpp:21:1: error: stray '\240' in program
cmmdcsum.cpp:23:1: error: stray '\302' in program
     while (sum1 != sum2)

 ^
cmmdcsum.cpp:23:1: error: stray '\240' in program
cmmdcsum.cpp:23:1: error: stray '\302' in program
cmmdcsum.cpp:23:1: error: stray '\240' in program
cmmdcsum.cpp:23:1: error: stray '\302' in program
cmmdcsum.cpp:23:1: error: stray '\240' in program
cmmdcsum.cpp:23:1: error: stray '\302' in program
cmmdcsum.cpp:23:1: error: stray '\240' in program
cmmdcsum.cpp:29:1: error: stray '\302' in program
     return 0;

 ^
cmmdcsum.cpp:29:1: error: stray '\240' in program
cmmdcsum.cpp:29:1: error: stray '\302' in program
cmmdcsum.cpp:29:1: error: stray '\240' in program
cmmdcsum.cpp:29:1: error: stray '\302' in program
cmmdcsum.cpp:29:1: error: stray '\240' in program
cmmdcsum.cpp:29:1: error: stray '\302' in program
cmmdcsum.cpp:29:1: error: stray '\240' in program
cmmdcsum.cpp:29:1: error: stray '\302' in program
cmmdcsum.cpp:29:1: error: stray '\240' in program
cmmdcsum.cpp:1:1: error: 'include' does not name a type
 include<iostream>

 ^
cmmdcsum.cpp: In function 'int main()':
cmmdcsum.cpp:9:5: error: 'cin' was not declared in this scope
     cin>>n;

     ^
cmmdcsum.cpp:27:2: error: 'cout' was not declared in this scope
  cout<<sum2;

  ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema CmmdcSum face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.