Borderou de evaluare (job #1213523)
Utilizator | Data | 28 iulie 2014 13:18:18 | |
---|---|---|---|
Problema | Farfurii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:12: error: expected unqualified-id before ‘,’ token
const long ,ong N=100000;
^
user.cpp:2:17: error: expected initializer before ‘N’
const long ,ong N=100000;
^
user.cpp:3:10: error: ‘N’ was not declared in this scope
bool vis[N+1];
^
user.cpp: In function ‘void scan()’:
user.cpp:7:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(in,"%I64d%I64d",&n,&k);
^
user.cpp:7:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp: In function ‘void solve()’:
user.cpp:21:9: error: ‘vis’ was not declared in this scope
vis[i]=true;
^
user.cpp:22:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(out,"%I64d ",i);
^
user.cpp:25:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(out,"%I64d ",k-nr+i);
^
user.cpp:26:9: error: ‘vis’ was not declared in this scope
vis[k-nr+i]=true;
^
user.cpp:29:13: error: ‘vis’ was not declared in this scope
if(!vis[i])
^
user.cpp:30:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(out,"%I64d ",i);
^
user.cpp: In function ‘void scan()’:
user.cpp:7:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%I64d%I64d",&n,&k);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !