Borderou de evaluare (job #2697801)

Utilizator luna26Elizabetha Beti luna26 Data 19 ianuarie 2021 18:05:55
Problema Telefon Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:40: error: stray '#' in program const char a[5] = { , 123, 456, 789, 0# }; ^ main.cpp:6:22: error: expected primary-expression before ',' token const char a[5] = { , 123, 456, 789, 0# }; ^ main.cpp:9:14: error: 'telefon' was not declared in this scope ifstream f(telefon.in); ^~~~~~~ main.cpp:10:14: error: 'telefon' was not declared in this scope ofstream g(telefon.out); ^~~~~~~ main.cpp: In function 'void solve(char)': main.cpp:13:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (i = 1; i = 4; i++) ^ main.cpp:14:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (j = 1; j = 3; j++) ^ main.cpp:15:14: error: invalid types 'const char[int]' for array subscript if (a[i][j] == c) ^ main.cpp:19:12: error: invalid types 'const char[int]' for array subscript if (a[x][y] == a[X][Y]) ^ main.cpp:19:23: error: invalid types 'const char[int]' for array subscript if (a[x][y] == a[X][Y]) ^ main.cpp:20:7: error: expected ';' before 'A' {g A ; ^ main.cpp:20:9: warning: statement has no effect [-Wunused-value] {g A ; ^ main.cpp:23:16: error: expected ')' before 'y' if (!(x == X y == Y)) ^ main.cpp:95:1: error: expected ')' at end of input } ^ main.cpp:95:1: error: expected statement at end of input main.cpp:23:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!(x == X y == Y)) ^~ cc1plus: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' main.cpp:95:1: error: expected '}' at end of input } ^ Non zero exit status: 1

Ceva nu functioneaza?