#661
Triunghiuri1
Se dau n
numere naturale distincte. Determinaţi câte triunghiuri distincte pot avea lungimile laturilor printre aceste numere.
Problema | Triunghiuri1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #35289044 | Utilizator | |
Fișier | triunghiuri1.cpp | Dimensiune | 2.49 KB |
Data încărcării | 03 Martie 2022, 20:45 | Scor / rezultat | Eroare de compilare |
triunghiuri1.cpp:13:34: error: stray '#' in program int mij = (left + right) / 2;#include <bits/stdc++.h> ^ triunghiuri1.cpp:117:2: error: stray '#' in program }#include <bits/stdc++.h> ^ triunghiuri1.cpp: In function 'int solve(int, int)': triunghiuri1.cpp:13:35: error: 'include' was not declared in this scope int mij = (left + right) / 2;#include <bits/stdc++.h> ^ triunghiuri1.cpp:13:44: error: 'bits' was not declared in this scope int mij = (left + right) / 2;#include <bits/stdc++.h> ^ triunghiuri1.cpp:13:49: error: 'stdc' was not declared in this scope int mij = (left + right) / 2;#include <bits/stdc++.h> ^ triunghiuri1.cpp:14:1: error: expected primary-expression before 'using' using namespace std; ^ triunghiuri1.cpp:14:1: error: expected ';' before 'using' triunghiuri1.cpp:20:1: error: a function-definition is not allowed here before '{' token { ^ triunghiuri1.cpp:13:9: warning: unused variable 'mij' [-Wunused-variable] int mij = (left + right) / 2;#include <bits/stdc++.h> ^ triunghiuri1.cpp:16:5: warning: unused variable 'v' [-Wunused-variable] int v[1005]; ^ triunghiuri1.cpp:17:5: warning: unused variable 'n' [-Wunused-variable] int n; ^ triunghiuri1.cpp:175:1: error: expected '}' at end of input } ^ triunghiuri1.cpp:175:1: warning: no return statement in function returning non-void [-Wreturn-type]
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Triunghiuri1 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ă.