Borderou de evaluare (job #1610059)
Utilizator | Data | 23 februarie 2016 11:24:02 | |
---|---|---|---|
Problema | Plantatie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void calcPlantation()’:
user.cpp:19:22: error: ‘k’ was not declared in this scope
int powk = 1 << (k-1);
^
user.cpp: In function ‘int main()’:
user.cpp:82:43: warning: conversion lacks type at end of format [-Wformat=]
fscanf(fin, "%d %d %h", &x, &y, &k);
^
user.cpp:82:43: warning: too many arguments for format [-Wformat-extra-args]
user.cpp:69:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", &n, &m);
^
user.cpp:74:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &plantation[i][j][0]);
^
user.cpp:82:44: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d %h", &x, &y, &k);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !