Borderou de evaluare (job #1500785)
Utilizator | Data | 12 octombrie 2015 18:12:20 | |
---|---|---|---|
Problema | Distante | 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:8:5: error: variably modified ‘dist’ at file scope
int dist[N];
^
user.c:9:1: error: unknown type name ‘bool’
bool ok;
^
user.c: In function ‘main’:
user.c:18:14: error: ‘true’ undeclared (first use in this function)
ok = true;
^
user.c:18:14: note: each undeclared identifier is reported only once for each function it appears in
user.c:22:31: error: ‘false’ undeclared (first use in this function)
if (dist[start]) ok = false;
^
user.c:13:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("distante.in", "r", stdin);
^
user.c:14:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("distante.out", "w", stdout);
^
user.c:15:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T);
^
user.c:19:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &m, &start);
^
user.c:21:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &dist[i]);
^
user.c:25:18: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &a, &b, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !