#932
AriaPoligonSimplu
Se dau coordonatele în plan pentru n
puncte. Să se afișeze valoarea ariei poligonului pe care acestea îl formează.
Problema | AriaPoligonSimplu | Operații I/O |
ariapoligonsimplu.in /ariapoligonsimplu.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51167176 | Utilizator | |
Fișier | ariapoligonsimplu.cpp | Dimensiune | 1010 B |
Data încărcării | 28 Mai 2024, 09:02 | Scor / rezultat | Eroare de compilare |
ariapoligonsimplu.cpp:1:10: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ ariapoligonsimplu.cpp:2:10: error: #include expects "FILENAME" or <FILENAME> #include <cmath> ^ ariapoligonsimplu.cpp:7:25: error: expected ')' before ';' token void Citire(Fractie & P); ^ ariapoligonsimplu.cpp:7:27: error: 'P' does not name a type void Citire(Fractie & P); ^ ariapoligonsimplu.cpp:10:31: error: expected ')' before ';' token void Simplificare(Fractie & P); ^ ariapoligonsimplu.cpp:10:33: error: 'P' does not name a type void Simplificare(Fractie & P); ^ ariapoligonsimplu.cpp: In function 'int main()': ariapoligonsimplu.cpp:17:15: error: 'gt' was not declared in this scope if(FCmp(A,B) > 0) ^ ariapoligonsimplu.cpp:17:17: error: expected ')' before ';' token if(FCmp(A,B) > 0) ^ ariapoligonsimplu.cpp:17:20: error: expected ';' before ')' token if(FCmp(A,B) > 0) ^ ariapoligonsimplu.cpp:18:11: warning: statement has no effect [-Wunused-value] Afisare(A); ^ ariapoligonsimplu.cpp:19:1: error: 'else' without a previous 'if' else ^ ariapoligonsimplu.cpp: At global scope: ariapoligonsimplu.cpp:29:25: error: expected ')' before ';' token void Citire(Fractie & P) ^ ariapoligonsimplu.cpp:29:27: error: 'P' does not name a type void Citire(Fractie & P) ^ ariapoligonsimplu.cpp: In function 'void Afisare(Fractie)': ariapoligonsimplu.cpp:37:1: error: 'cout' was not declared in this scope cout << P.numarator << " " << P.numitor; ^ ariapoligonsimplu.cpp:37:7: error: 'lt' was not declared in this scope cout << P.numarator << " " << P.numitor; ^ ariapoligonsimplu.cpp:37:37: error: 'quot' was not declared in this scope cout << P.numarator << " " << P.numitor; ^ ariapoligonsimplu.cpp:37:68: warning: statement has no effect [-Wunused-value] cout << P.numarator << " " << P.numitor; ^ ariapoligonsimplu.cpp: At global scope: ariapoligonsimplu.cpp:39:31: error: expected ')' before ';' token void Simplificare(Fractie & P) ^ ariapoligonsimplu.cpp:39:33: error: 'P' does not name a type void Simplificare(Fractie & P) ^ ariapoligonsimplu.cpp: In function 'int FCmp(Fractie, Fractie)': ariapoligonsimplu.cpp:48:29: error: 'lt' was not declared in this scope if(A.numarator * B.numitor < A.numitor * B.numarator) ^ ariapoligonsimplu.cpp:48:31: error: expected ')' before ';' token if(A.numarator * B.numitor < A.numitor * B.numarator) ^ ariapoligonsimplu.cpp:48:56: error: expected ';' before ')' token if(A.numarator * B.numitor < A.numitor * B.numarator) ^ ariapoligonsimplu.cpp:48:43: warning: statement has no effect [-Wunused-value] if(A.numarator * B.numitor < A.numitor * B.numarator) ^ ariapoligonsimplu.cpp:50:29: error: 'gt' was not declared in this scope if(A.numarator * B.numitor > A.numitor * B.numarator) ^ ariapoligonsimplu.cpp:50:31: error: expected ')' before ';' token if(A.numarator * B.numitor > A.numitor * B.numarator) ^ ariapoligonsimplu.cpp:50:56: error: expected ';' before ')' token if(A.numarator * B.numitor > A.numitor * B.numarator) ^ ariapoligonsimplu.cpp:50:43: warning: statement has no effect [-Wunused-value] if(A.numarator * B.numitor > A.numitor * B.numarator) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema AriaPoligonSimplu face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.