Borderou de evaluare (job #2234453)
Utilizator | Data | 25 august 2018 18:04:06 | |
---|---|---|---|
Problema | Partii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int suma_max(long long int**, int, int)’:
user.cpp:84:6: error: ‘i’ was not declared in this scope
for(i=0; i<n; i++)
^
user.cpp:85:6: error: ‘j’ was not declared in this scope
for(j=0; j<m; j++)
^
user.cpp:87:5: error: ‘indici’ was not declared in this scope
indici[0]=i;
^~~~~~
user.cpp:89:5: error: ‘suma’ was not declared in this scope
suma=suma_total(p,indici,n,m);
^~~~
user.cpp:90:13: error: ‘suma_Max’ was not declared in this scope
if(suma>suma_Max)
^~~~~~~~
user.cpp:93:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:107:24: error: ‘suma_Max’ cannot be used as a function
fout<<suma_Max(p,n,m);
^
user.cpp:96:17: warning: unused variable ‘Max’ [-Wunused-variable]
long long **p, Max(0);
^~~
user.cpp:97:31: warning: unused variable ‘suma’ [-Wunused-variable]
int i, j, m, n, suma_Max(0), suma, aux(0), indici[2];
^~~~
user.cpp:97:37: warning: unused variable ‘aux’ [-Wunused-variable]
int i, j, m, n, suma_Max(0), suma, aux(0), indici[2];
^~~
user.cpp:97:45: warning: unused variable ‘indici’ [-Wunused-variable]
int i, j, m, n, suma_Max(0), suma, aux(0), indici[2];
^~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !