Borderou de evaluare (job #1994614)
Utilizator | Data | 25 iunie 2017 15:04:34 | |
---|---|---|---|
Problema | Peluza Sud | 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:11:5: error: expected ‘;’ before ‘for’
for(int i=1;i<=11;i++)
^
user.cpp:11:17: error: ‘i’ was not declared in this scope
for(int i=1;i<=11;i++)
^
user.cpp:11:26: error: expected ‘;’ before ‘)’ token
for(int i=1;i<=11;i++)
^
user.cpp:7:19: warning: unused variable ‘nr’ [-Wunused-variable]
long long n,x,nr=1;
^
user.cpp:8:9: warning: unused variable ‘v’ [-Wunused-variable]
int v[12]={0,2,3,5,7,11,13,17,19,23,29,31};
^
user.cpp:26:1: error: expected ‘}’ at end of input
}
^
user.cpp:5:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("peluzasud.in","r",stdin);
^
user.cpp:6:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("peluzasud.out","w",stdout);
^
user.cpp:9:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&n,&x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !