Borderou de evaluare (job #1277398)
| Utilizator | Data | 27 noiembrie 2014 17:00:46 | |
|---|---|---|---|
| Problema | Divizor si multiplu | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:3:10: error: expected identifier before numeric constant
int put=[1,2,4,8,16,32,64,128,256];
^
user.cpp:3:11: error: expected ‘]’ before ‘,’ token
int put=[1,2,4,8,16,32,64,128,256];
^
user.cpp: In lambda function:
user.cpp:3:11: error: expected ‘{’ before ‘,’ token
user.cpp: At global scope:
user.cpp:3:11: error: invalid user-defined conversion from ‘__lambda0’ to ‘int’ [-fpermissive]
user.cpp:3:11: note: candidate is: __lambda0::operator void (*)()() const <near match>
user.cpp:3:11: note: no known conversion for implicit ‘this’ parameter from ‘void (*)()’ to ‘int’
user.cpp:3:12: error: expected unqualified-id before numeric constant
int put=[1,2,4,8,16,32,64,128,256];
^
user.cpp: In function ‘int main()’:
user.cpp:25:31: error: invalid types ‘int[int]’ for array subscript
printf ("%d\n",put[cnt]);
^
user.cpp:8:17: warning: unused variable ‘p’ [-Wunused-variable]
int T,x,y,d,p=0,i,s,j,cnt;
^
user.cpp:8:25: warning: unused variable ‘j’ [-Wunused-variable]
int T,x,y,d,p=0,i,s,j,cnt;
^
user.cpp:9:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
user.cpp:12:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
