Borderou de evaluare (job #1919336)
Utilizator | Data | 9 martie 2017 18:54:59 | |
---|---|---|---|
Problema | Lacusta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void afisare()’:
user.cpp:18:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=]
printf(" %d ",&mx[i][j]);
^
user.cpp: In function ‘bool sortBefore(size_t, size_t)’:
user.cpp:26:9: warning: unused variable ‘h’ [-Wunused-variable]
int h = x;
^
user.cpp: In function ‘int main()’:
user.cpp:50:18: error: expected ‘}’ at end of input
printf("%d",suma);
^
user.cpp: In function ‘void citire()’:
user.cpp:8:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&m,&n);
^
user.cpp:11:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&mx[i][j]);
^
user.cpp: In function ‘int main()’:
user.cpp:30:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lacusta.in","r",stdin);
^
user.cpp:31:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lacusta.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !