Borderou de evaluare (job #797757)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Minnrk (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 nov. 2024 15:19:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:6: error: conflicting declaration 'char n [105]'
8 | char n[105];
| ^
main.cpp:7:5: note: previous declaration as 'int n'
7 | int n,i,x,f[11],k,nr[101],j;
| ^
main.cpp: In function 'int main()':
main.cpp:12:14: error: invalid types 'int[int]' for array subscript
12 | for(i=0;n[i]!='\0';i++)
| ^
main.cpp:14:16: error: invalid types 'int[int]' for array subscript
14 | nr[i]=n[i]-'0';
| ^