Borderou de evaluare (job #1186785)
Utilizator | Data | 17 mai 2014 14:55:10 | |
---|---|---|---|
Problema | Quadratum | Status | done |
Runda | ACM-ICPC Faza Nationala 2014-2015 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:79:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld",&T);
^
user.cpp:82:31: error: ‘memset’ was not declared in this scope
memset(a, 0, sizeof(a));
^
user.cpp:115:26: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld",a[i]);
^
user.cpp:77:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("quadratum.in","r",stdin);
^
user.cpp:78:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("quadratum.out","w",stdout);
^
user.cpp:79:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&T);
^
user.cpp:85:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !