#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 | #41600591 | Utilizator | |
Fișier | joc13.cpp | Dimensiune | 2.21 KB |
Data încărcării | 29 Ianuarie 2023, 21:07 | Scor / rezultat | Eroare de compilare |
joc13.cpp:79:19: error: stray '#' in program cout ​\`oaicite:{"index":0,"invalid_reason":"Malformed citation << endl;\n }\n }\n}\n\nint main() {\n int c, n;\n cin >> c >>"}\`​ n; ^ joc13.cpp:79:13: error: stray '\`' in program cout ​\`oaicite:{"index":0,"invalid_reason":"Malformed citation << endl;\n }\n }\n}\n\nint main() {\n int c, n;\n cin >> c >>"}\`​ n; ^ joc13.cpp:79:13: error: stray '\`' in program joc13.cpp:79:163: error: stray '#' in program cout ​\`oaicite:{"index":0,"invalid_reason":"Malformed citation << endl;\n }\n }\n}\n\nint main() {\n int c, n;\n cin >> c >>"}\`​ n; ^ joc13.cpp: In function 'void play_game(int, int)': joc13.cpp:63:20: error: expected unqualified-id before '[' token for (auto &[key, value] : x_count) { ^ joc13.cpp:63:20: error: expected ';' before '[' token joc13.cpp:63:21: error: 'key' was not declared in this scope for (auto &[key, value] : x_count) { ^ joc13.cpp:63:26: error: 'value' was not declared in this scope for (auto &[key, value] : x_count) { ^ joc13.cpp: In lambda function: joc13.cpp:63:33: error: expected '{' before ':' token for (auto &[key, value] : x_count) { ^ joc13.cpp: In function 'void play_game(int, int)': joc13.cpp:63:33: error: expected ';' before ':' token joc13.cpp:63:33: error: expected primary-expression before ':' token joc13.cpp:63:33: error: expected ')' before ':' token joc13.cpp:63:33: error: expected primary-expression before ':' token joc13.cpp:63:33: error: expected ';' before ':' token joc13.cpp:62:13: warning: unused variable 'max_x_count' [-Wunused-variable] int max_x_count = 0; ^ joc13.cpp:82:1: error: expected '}' at end of input } ^ joc13.cpp:82:1: error: expected '}' at end of input
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ă.