Borderou de evaluare (job #3336596)

Utilizator Nicky_DumitracheNicolae Dumitrache Nicky_Dumitrache Data 24 ianuarie 2026 23:06:48
Problema Tablete Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:6:29: error: redeclaration of 'int i' 6 | int n, k, p = 2, i = 1, i, j; | ^ main.cpp:6:22: note: 'int i' previously declared here 6 | int n, k, p = 2, i = 1, i, j; | ^ main.cpp:23:59: error: operands to '?:' have different types 'const char*' and 'char' 23 | for (j = 1; j <= n; j++) fo << a[i][j] << (j == n ? "" : ' '); | ~~~~~~~^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?