#1478
Se dă un tablou reprezentând o imagine care conține cifre. Scrieţi un program care să determine:
a) câte cifre sunt în imagine;
b) numărul de apariţii ale fiecărei cifre.
| Problema | EasyOCR | Operații I/O |
easyocr.in/easyocr.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 4 MB
/
Stivă 2 MB
|
| Id soluție | #64742531 | Utilizator | |
| Fișier | easyocr.cpp | Dimensiune | 1.22 KB |
| Data încărcării | 27 Mai 2026, 10:40 | Scor/rezultat | Eroare de compilare |
easyocr.cpp: In function ‘bool e0(int, int)’: easyocr.cpp:10:12: error: ‘a’ was not declared in this scope 10 | if(a[x][j]==0)return 0; | ^ easyocr.cpp:12:15: error: expected ‘)’ before ‘]’ token 12 | if(x+6][j]==0)return 0; | ~ ^ | ) easyocr.cpp:12:15: error: expected primary-expression before ‘]’ token easyocr.cpp:13:14: error: ‘a’ was not declared in this scope 13 | else a[x+6][j]=0;} | ^ easyocr.cpp:15:12: error: ‘a’ was not declared in this scope 15 | if(a[i][y]==0)return 0; | ^ easyocr.cpp:17:12: error: ‘a’ was not declared in this scope 17 | if(a[i][y+4]==0)return 0; | ^ easyocr.cpp: In function ‘bool e1(int, int)’: easyocr.cpp:23:8: error: ‘a’ was not declared in this scope 23 | if(a[x+1][y-1]==0)return 0; | ^ easyocr.cpp:25:12: error: ‘a’ was not declared in this scope 25 | if(a[i][y]==0)return 0; | ^ easyocr.cpp: At global scope: easyocr.cpp:30:14: error: expected ‘)’ before ‘;’ token 30 | bool e2(int x;int y) | ~ ^ | ) easyocr.cpp:30:20: error: expected initializer before ‘)’ token 30 | bool e2(int x;int y) | ^ easyocr.cpp: In function ‘int main()’: easyocr.cpp:46:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’? 46 | fin>>n>>m; | ^ | yn easyocr.cpp:46:13: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 46 | fin>>n>>m; | ^ | tm easyocr.cpp:48:16: error: expected ‘;’ before ‘for’ 48 | fin.getline | ^ | ; 49 | for(int i=1;i<=n;i++) | ~~~ easyocr.cpp:48:9: error: statement cannot resolve address of overloaded function 48 | fin.getline | ~~~~^~~~~~~ easyocr.cpp:49:17: error: ‘i’ was not declared in this scope 49 | for(int i=1;i<=n;i++) | ^ easyocr.cpp:50:17: error: ‘j’ was not declared in this scope; did you mean ‘jn’? 50 | for(int j=1;j<=m;j++){ | ^ | jn easyocr.cpp:61:2: error: expected ‘}’ at end of input 61 | } | ^ easyocr.cpp:45:1: note: to match this ‘{’ 45 | { | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema EasyOCR 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ă.