Borderou de evaluare (job #2320197)
Utilizator | Data | 14 ianuarie 2019 15:04:13 | |
---|---|---|---|
Problema | Pietre2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:14:20: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=1;i,+n;++i)
^
main.cpp:18:25: error: 'mat' was not declared in this scope
scanf("%d",&mat[i][j]);
^~~
main.cpp:23:13: error: 'j' was not declared in this scope
for(j=1;j<=100;++i)
^
main.cpp:12:11: warning: unused variable 'm' [-Wunused-variable]
int n,m;
^
main.cpp:10:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pietre2.in","r",stdin);
^
main.cpp:11:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pietre2.out","w",stdout);
^
main.cpp:13:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !