Borderou de evaluare (job #1773136)
Utilizator | Data | 7 octombrie 2016 16:23:22 | |
---|---|---|---|
Problema | Inv | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:3:1: error: unknown type name ‘using’
using namespace std;
^
user.c:3:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘std’
using namespace std;
^
user.c:5:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
pair <int, int> aux[10001];
^
user.c: In function ‘update’:
user.c:9:9: error: ‘aib’ undeclared (first use in this function)
aib[p]+=val;
^
user.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
user.c: In function ‘query’:
user.c:18:12: error: ‘aib’ undeclared (first use in this function)
s+=aib[p];
^
user.c:21:5: warning: ‘return’ with a value, in function returning void [enabled by default]
return s;
^
user.c: In function ‘main’:
user.c:31:26: error: ‘aux’ undeclared (first use in this function)
fscanf(fin,"%d",&aux[i].first);
^
user.c:34:5: warning: implicit declaration of function ‘sort’ [-Wimplicit-function-declaration]
sort(aux,aux+n);
^
user.c:45:9: error: ‘rez’ undeclared (first use in this function)
rez+=i-1-query(v[i]);
^
user.c:45:9: error: void value not ignored as it ought to be
user.c:46:14: error: ‘MOD’ undeclared (first use in this function)
rez%=MOD;
^
user.c:29:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !