Borderou de evaluare (job #2644089)
Utilizator | Data | 23 august 2020 12:50:06 | |
---|---|---|---|
Problema | Matrix | 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:22:20: error: 'gets' was not declared in this scope
gets(a[i]+1);
^
main.cpp:27:22: warning: array subscript has type 'char' [-Wchar-subscripts]
v[b[i][j]]++;
^
main.cpp:16:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("matrix.in","r",stdin);
^
main.cpp:17:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("matrix.out","w",stdout);
^
main.cpp:19:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n ",&n,&m);
^
main.cpp:26:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&b[i][j]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !