Submisie


Utilizator
Problema
Data
Compilator
Scor
9 Iulie 2026, 00:38
c++14
E.C.

fail

Mesaj compilare

        main.cpp: In function ‘int main()’:
main.cpp:39:21: error: expected ‘;’ before ‘int’
   39 |     cin.tie(nullptr)
      |                     ^
      |                     ;
   40 | 
   41 |     int n, x, y, i;
      |     ~~~              
main.cpp:43:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   43 |     cin >> n >> x >> y;
      |            ^
      |            yn
main.cpp:43:17: error: ‘x’ was not declared in this scope
   43 |     cin >> n >> x >> y;
      |                 ^
main.cpp:43:22: error: ‘y’ was not declared in this scope; did you mean ‘yn’?
   43 |     cin >> n >> x >> y;
      |                      ^
      |                      yn
main.cpp:44:9: error: ‘i’ was not declared in this scope
   44 |     for(i = 0; i < n; i++){
      |         ^