Borderou de evaluare (job #2383174)
Utilizator | Data | 19 martie 2019 09:54:46 | |
---|---|---|---|
Problema | Ciuruleț | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:17: error: 'atd' is not a namespace-name
using namespace atd;
^~~
main.cpp:2:20: error: expected namespace-name before ';' token
using namespace atd;
^
main.cpp:4:1: error: 'vector' does not name a type
vector<int>v;
^~~~~~
main.cpp: In function 'int main()':
main.cpp:11:13: error: 'gets' was not declared in this scope
gets(s+1);
^
main.cpp:16:13: error: 'v' was not declared in this scope
v.push_back(i+1);
^
main.cpp:23:19: error: 'v' was not declared in this scope
for(int j=v[i];j<=n;j+=v[i])
^
main.cpp:30:15: error: 'v' was not declared in this scope
s[v[i]-1]='0';
^
main.cpp:32:15: error: 'v' was not declared in this scope
s[v[i]-1]='1';
^
main.cpp:7:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ciurulet.in","r",stdin);
^
main.cpp:8:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ciurulet.out","w",stdout);
^
main.cpp:10:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !