#3943
Cerc5
Se dă numărul natural n
. Determinati o modalitate de așezare a numerelor din mulțimea \({1,2,…,n}\) pe un cerc astfel încât suma a oricare două nume învecinate să fie pătrat perfect.
Problema | Cerc5 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58600482 | Utilizator | |
Fișier | cerc5.cpp | Dimensiune | 2.00 KB |
Data încărcării | 28 Iunie 2025, 11:41 | Scor / rezultat | Eroare de compilare |
cerc5.cpp:43:14: error: stray '#' in program }#include <iostream> ^ cerc5.cpp: In function 'void Back(int)': cerc5.cpp:43:15: error: 'include' was not declared in this scope }#include <iostream> ^ cerc5.cpp:43:32: error: expected primary-expression before '>' token }#include <iostream> ^ cerc5.cpp:48:1: error: expected primary-expression before 'using' using namespace std; ^ cerc5.cpp:48:1: error: expected ';' before 'using' cerc5.cpp:53:1: error: a function-definition is not allowed here before '{' token { ^ cerc5.cpp:61:1: error: a function-definition is not allowed here before '{' token { ^ cerc5.cpp:73:1: error: a function-definition is not allowed here before '{' token { ^ cerc5.cpp:50:5: warning: unused variable 'n' [-Wunused-variable] int n , x[36] , z[36], gata; ^ cerc5.cpp:50:9: warning: unused variable 'x' [-Wunused-variable] int n , x[36] , z[36], gata; ^ cerc5.cpp:50:17: warning: unused variable 'z' [-Wunused-variable] int n , x[36] , z[36], gata; ^ cerc5.cpp:50:24: warning: unused variable 'gata' [-Wunused-variable] int n , x[36] , z[36], gata; ^ cerc5.cpp:116:1: error: expected '}' at end of input } ^ cerc5.cpp:116:1: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cerc5 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ă.