Borderou de evaluare (job #1826274)
Utilizator | Data | 10 decembrie 2016 12:11:41 | |
---|---|---|---|
Problema | Diagonale | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:1: error: expected ‘,’ or ‘;’ before ‘ofstream’
ofstream g ("diagonale.out")
^
user.cpp: In function ‘int main()’:
user.cpp:16:13: error: ‘ma’ was not declared in this scope
f>>ma[i][j];
^
user.cpp:17:9: error: ‘st’ was not declared in this scope
st[i+j]+=ma[i][j];
^
user.cpp:18:10: error: ‘dr’ was not declared in this scope
dr[i-j+n]+=ma[i][j];
^
user.cpp:27:12: error: ‘maxx’ was not declared in this scope
if(maxx<st[i+j])
^
user.cpp:27:17: error: ‘st’ was not declared in this scope
if(maxx<st[i+j])
^
user.cpp:32:12: error: ‘dr’ was not declared in this scope
if(dr[i-j+n]>maxx)
^
user.cpp:32:22: error: ‘maxx’ was not declared in this scope
if(dr[i-j+n]>maxx)
^
user.cpp:35:1: error: ‘g’ was not declared in this scope
g<<maxx;
^
user.cpp:35:4: error: ‘maxx’ was not declared in this scope
g<<maxx;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !