Borderou de evaluare (job #769483)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Competitie | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 21 mar. 2024 20:24:17 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:123:3: error: 'cout' was not declared in this scope; did you mean 'ct'?
123 | cout << "2";
| ^~~~
| ct
main.cpp: In function 'void input()':
main.cpp:75:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
75 | scanf("%d%d",&k,&n);
| ~~~~~^~~~~~~~~~~~~~
main.cpp:78:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
78 | scanf("%d%d",&s[i],&p[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:86:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | freopen("competitie.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:87:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
87 | freopen("competitie.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~