Borderou de evaluare (job #1737337)
Utilizator | Data | 3 august 2016 19:51:53 | |
---|---|---|---|
Problema | Numere Prime | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int ciur(int)’:
user.cpp:7:19: error: variable-sized object ‘p’ may not be initialized
bool p[n] = {0};
^
user.cpp: In function ‘int main()’:
user.cpp:24:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("prim.in","r",stdin);
^
user.cpp:25:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("prim.out","w",stdout);
^
user.cpp:26:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp: In function ‘int ciur(int)’:
user.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !