Borderou de evaluare (job #1995237)
Utilizator | Data | 27 iunie 2017 13:13:22 | |
---|---|---|---|
Problema | Trompeta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[1000005]’ [-Wformat=]
fscanf(f,"%s",&ch)
^
user.cpp:13:5: error: expected ‘;’ before ‘for’
for(i=1; i<=n; i++)
^
user.cpp:13:15: warning: statement has no effect [-Wunused-value]
for(i=1; i<=n; i++)
^
user.cpp:13:23: error: expected ‘;’ before ‘)’ token
for(i=1; i<=n; i++)
^
user.cpp:9:11: warning: unused variable ‘g’ [-Wunused-variable]
FILE *g=fopen("trompeta.out","w");
^
user.cpp:28:1: error: expected ‘}’ at end of input
}
^
user.cpp:10:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&n,&m);
^
user.cpp:13:12: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=n; i++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !