Borderou de evaluare (job #2530237)
Utilizator | Data | 24 ianuarie 2020 16:01:15 | |
---|---|---|---|
Problema | Ferma3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void filulet(int, int)':
main.cpp:10:14: error: expected ';' before ':' token
nr[nrz]++:
^
main.cpp:11:14: warning: statement has no effect [-Wunused-value]
for(i=0;i<=3;i++)
~^~~
main.cpp:11:21: error: expected ';' before ')' token
for(i=0;i<=3;i++)
^
main.cpp: In function 'int main()':
main.cpp:23:21: error: 'c' was not declared in this scope
scanf("%d%d%d",&c,&n,&m);
^
main.cpp:23:24: error: 'n' was not declared in this scope
scanf("%d%d%d",&c,&n,&m);
^
main.cpp:23:27: error: 'm' was not declared in this scope
scanf("%d%d%d",&c,&n,&m);
^
main.cpp:24:9: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
main.cpp:25:9: error: 'j' was not declared in this scope
for(j=1;j<=m;j++)
^
main.cpp:27:9: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
main.cpp:28:9: error: 'j' was not declared in this scope
for(j=1;j<=m;j++)
^
main.cpp:42:13: error: 'i' was not declared in this scope
for(i=1;i<=n;i++)
^
main.cpp:43:13: error: 'j' was not declared in this scope
for(j=1;j<=m;j++)
^
main.cpp:45:16: error: expected primary-expression before ')' token
if()
^
main.cpp:46:9: error: expected primary-expression before '}' token
}
^
main.cpp:21:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ferma3.in","r",stdin);
^
main.cpp:22:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ferma3.out","w",stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !