Borderou de evaluare (job #2813937)

Utilizator ioan_mateiioan matei ioan_matei Data 7 decembrie 2021 12:09:28
Problema Parantezare optima de matrici Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:18:19: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 18 | for(int i=0; i<=n; i++) | ~^~~ main.cpp:23:19: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 23 | for(int i=1; i<=n; i++) M[i][i] = 0; | ~^~~ main.cpp:24:19: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 24 | for(int i=1; i<=n - 1; i++) M[i][i + 1] = d[i - 1] * d[i] * d[i + 1]; | ~^~~~~~~ main.cpp:25:19: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 25 | for(int w=2; w<=n - 1; w++) | ~^~~~~~~ main.cpp:26:24: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 26 | for (int i= 1;i<=n - w; i++) | ~^~~~~~~ main.cpp:25:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 25 | for(int w=2; w<=n - 1; w++) | ^~~ main.cpp:33:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 33 | fout<<M[1][n]; | ^~~~ main.cpp: At global scope: main.cpp:40:56: error: expected ',' or '...' before 'b' 40 | int Min(unsigned long long int a,unsigned long longint b) | ^ main.cpp: In function 'int Min(long long unsigned int, long unsigned int)': main.cpp:42:9: error: 'b' was not declared in this scope 42 | if(a>b)return b; | ^ Non zero exit status: 1

Ceva nu functioneaza?