Borderou de evaluare (job #1506724)
Utilizator | Data | 20 octombrie 2015 22:03:48 | |
---|---|---|---|
Problema | Emptri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: expected initializer before ‘int’
int n;
^
user.cpp: In function ‘int main()’:
user.cpp:16:17: error: ‘n’ was not declared in this scope
scanf("%d",&n);
^
user.cpp:23:9: error: ‘sphi’ was not declared in this scope
sphi[i] = sphi[i - 1] + phi[i];
^
user.cpp:25:26: error: ‘sphi’ was not declared in this scope
printf("%lld\n", 2 * sphi[n] + 1);
^
user.cpp:13:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("emptri.in","r",stdin);
^
user.cpp:14:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("emptri.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !