Borderou de evaluare (job #2584266)

Utilizator lfaasdMarius Lfaasd lfaasd Data 18 martie 2020 15:45:32
Problema Rusuoaica Status done
Runda FMI No Stress 9 Warmup Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void compute_powers()': main.cpp:39:26: error: expected primary-expression before '=' token for ( int j = 2; j < = 1000; j++) { ^ main.cpp:40:9: error: 'rez' was not declared in this scope rez = j; ^~~ main.cpp:48:9: error: 'value' was not declared in this scope value = putere[0][i]; ^~~~~ main.cpp:54:19: error: invalid types 'int[int]' for array subscript putere[1[i] = nr; ^ main.cpp:54:25: error: expected ']' before ';' token putere[1[i] = nr; ^ main.cpp: In function 'int cb(int, int, bool)': main.cpp:59:9: error: declaration of 'int value' shadows a parameter int value = 0; ^~~~~ main.cpp:61:94: error: expected primary-expression before ')' token if (value + pow <= 1000 && putere[value + pow][p] != 0 && putere[value + pow][p] <= ) ^ main.cpp:62:5: error: expected primary-expression before '}' token } ^ main.cpp:63:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:73:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("asi.in", "r", stdin); ^ main.cpp:74:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("asi.out", "w", stdout); ^ main.cpp:79:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld %lld", &a, &b); ^ Non zero exit status: 1

Ceva nu functioneaza?