Borderou de evaluare (job #831047)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | 3 și 5 (clasa a 6-a) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 17 iul. 2025 21:57:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:18:16: error: subscripted value is neither array nor pointer nor vector
18 | cif[z] = ( ic % 2 ) + '0';
| ^
main.c:26:42: error: subscripted value is neither array nor pointer nor vector
26 | maria[j] = 3 * maria[j] + cif[z] - '0';
| ^
main.c:31:42: error: subscripted value is neither array nor pointer nor vector
31 | mihai[j] = 5 * mihai[j] + cif[zc] - '0';
| ^
main.c:35:16: error: subscripted value is neither array nor pointer nor vector
35 | cif[d] = '0';
| ^
main.c:56:30: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int' [-Wformat=]
56 | fprintf ( fout , "%lld\n" , mihai[j] );
| ~~~^ ~~~~~~~~
| | |
| | int
| long long int
| %d
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf ( fin , "%d" , &n );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~