Borderou de evaluare (job #1334742)
Utilizator | Data | 4 februarie 2015 16:50:52 | |
---|---|---|---|
Problema | GFact | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:38:28: error: expected unqualified-id before ‘long’
long long p,q,b,e,B=-1,long longmax;
^
user.cpp:39:18: error: expected primary-expression before ‘long’
long longmax=long long_MAX;
^
user.cpp:65:22: error: expected primary-expression before ‘long’
B=max(B,bs(1,long longmax,i));
^
user.cpp:66:5: error: ‘prlong’ was not declared in this scope
prlong longf("%lld\n",B);
^
user.cpp:66:12: error: expected ‘;’ before ‘longf’
prlong longf("%lld\n",B);
^
user.cpp:39:10: warning: unused variable ‘longmax’ [-Wunused-variable]
long longmax=long long_MAX;
^
user.cpp:36:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gfact.in","r",stdin);
^
user.cpp:37:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gfact.out","w",stdout);
^
user.cpp:40:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&p,&q);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !