#4131
joc13
Dându-se numărul N
, determinați:
N
;ONI 2022, clasa a V-a
Problema | joc13 | Operații I/O |
joc.in /joc.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50052211 | Utilizator | |
Fișier | joc13.cpp | Dimensiune | 879 B |
Data încărcării | 25 Martie 2024, 16:04 | Scor / rezultat | Eroare de compilare |
joc13.cpp: In function 'int main()': joc13.cpp:34:9: error: 'c1' was not declared in this scope while(c1<=n &&c2<=n) ^ joc13.cpp:34:17: error: 'c2' was not declared in this scope while(c1<=n &&c2<=n) ^ joc13.cpp:39:35: error: expected ')' before 'mod' x=((k + ((copil[r] + n) mod 10)) mod 6) + 1; ^ joc13.cpp:39:54: error: expected ')' before ';' token x=((k + ((copil[r] + n) mod 10)) mod 6) + 1; ^ joc13.cpp:39:54: error: expected ')' before ';' token joc13.cpp:40:24: error: expected ')' before 'mod' else x= ((((k+1) mod 5) + ((copil[r] + n) mod 10)) mod 6) + 1; ^ joc13.cpp:40:68: error: expected ')' before ';' token else x= ((((k+1) mod 5) + ((copil[r] + n) mod 10)) mod 6) + 1; ^ joc13.cpp:40:68: error: expected ')' before ';' token joc13.cpp:49:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(x!=6) rand= rand==1?rand=2;rand=1; ^ joc13.cpp:49:34: error: assignment of function 'int rand()' if(x!=6) rand= rand==1?rand=2;rand=1; ^ joc13.cpp:49:34: error: cannot convert 'int' to 'int()throw ()' in assignment joc13.cpp:49:36: error: expected ':' before ';' token if(x!=6) rand= rand==1?rand=2;rand=1; ^ joc13.cpp:49:36: error: expected primary-expression before ';' token joc13.cpp:49:41: error: assignment of function 'int rand()' if(x!=6) rand= rand==1?rand=2;rand=1; ^ joc13.cpp:49:41: error: cannot convert 'int' to 'int()throw ()' in assignment
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema joc13 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ă.