Borderou de evaluare (job #1359798)
Utilizator | Data | 25 februarie 2015 07:34:08 | |
---|---|---|---|
Problema | Por Costel si Comisia de Cenzura | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:100: error: expected initializer before ‘s1’
char t/*nr. testelor*/,i,lit/*a cata litera din alfabetul ascii*/,s[1000000]/*cuv. lui costel*/s1[100];
^
user.cpp:10:155: error: expected initializer before ‘*’ token
int k,j,n/*nr. de caractere*/,m/*nr de cuvinte taboo*/,val/*inportanta unei litere*/,sum/*suma valorilor minime din cuv*/,v[25]/*vectorul de marcaje*/*q/*mercaj de minime la cuvinte cenzurate*/;
^
user.cpp:11:5: error: ‘q’ was not declared in this scope
q =(int*) malloc(m*sizeof(int));
^
user.cpp:12:22: error: ‘v’ was not declared in this scope
for(i=0;i<25;i++)v[i]=0;
^
user.cpp:16:24: error: ‘s’ was not declared in this scope
fscanf(f,"%s",&s);
^
user.cpp:20:10: error: ‘v’ was not declared in this scope
if(v[lit%97]<val)v[lit%97]=val;
^
user.cpp:22:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(f,"%d",m);
^
user.cpp:24:26: error: ‘s1’ was not declared in this scope
{ fscanf(f,"%s",&s1);
^
user.cpp:25:11: error: ‘min’ was not declared in this scope
min=100000;
^
user.cpp:28:16: error: ‘v’ was not declared in this scope
if(v[lit%97]<min)min=v[lit%97];
^
user.cpp:6:28: warning: ignoring return value of ‘FILE* fopen(const char*, const char*)’, declared with attribute warn_unused_result [-Wunused-result]
{ fopen("cenzura.in","r");
^
user.cpp:7:29: warning: ignoring return value of ‘FILE* fopen(const char*, const char*)’, declared with attribute warn_unused_result [-Wunused-result]
fopen("cenzura.out","w");
^
user.cpp:13:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%hhd",&t);
^
user.cpp:15:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{ fscanf(f,"%d",&n);
^
user.cpp:19:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&val);
^
user.cpp:22:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",m);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !