#3786
De n numere sunt date,
Şi cifra nouă e-n toate,
Află ce număr devine
Maxim făr’de nouă-n sine?
| Problema | toate | Operații I/O |
toate.in/toate.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #62242442 | Utilizator | |
| Fișier | toate.cpp | Dimensiune | 573 B |
| Data încărcării | 14 Ianuarie 2026, 18:29 | Scor/rezultat | Eroare de compilare |
toate.cpp: In function 'int main()': toate.cpp:6:30: error: 'sync_with_stdio' was not declared in this scope ios:sync_with_stdio(false); ^ toate.cpp:14:5: error: expected ',' or ';' before 'for' for (int i=0; i<n; i++) ^ toate.cpp:14:19: error: 'i' was not declared in this scope for (int i=0; i<n; i++) ^ toate.cpp:14:27: error: expected ';' before ')' token for (int i=0; i<n; i++) ^ toate.cpp:16:14: error: 's' was not declared in this scope cin>>s; ^ toate.cpp:19:10: error: 'chat' was not declared in this scope for (chat c:s) { ^ toate.cpp:19:15: error: expected ';' before 'c' for (chat c:s) { ^ toate.cpp:24:5: error: expected primary-expression before 'long' long long val; ^ toate.cpp:24:5: error: expected ';' before 'long' toate.cpp:24:5: error: expected primary-expression before 'long' toate.cpp:24:5: error: expected ')' before 'long' toate.cpp:24:15: warning: unused variable 'val' [-Wunused-variable] long long val; ^ toate.cpp:26:9: error: 'val' was not declared in this scope val=0; ^ toate.cpp:28:9: error: 'val' was not declared in this scope val=stoll(fara9); ^ toate.cpp:30:9: error: 'val' was not declared in this scope if (val > maxim) ^ toate.cpp:6:5: warning: label 'ios' defined but not used [-Wunused-label] ios:sync_with_stdio(false); ^ toate.cpp: At global scope: toate.cpp:33:6: error: 'cout' does not name a type cout<< maxim; ^ toate.cpp:34:6: error: expected unqualified-id before 'return' return 0; ^ toate.cpp:35:1: error: expected declaration before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema toate 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ă.