#3124
PatratMagic0
Se dă un număr natural n
, urmat de o matrice pătratică cu n * n
elemente, numere naturale. Să se verifice dacă matricea dată este un pătrat magic.
Problema | PatratMagic0 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51214073 | Utilizator | |
Fișier | patratmagic0.cpp | Dimensiune | 986 B |
Data încărcării | 30 Mai 2024, 11:59 | Scor / rezultat | Eroare de compilare |
patratmagic0.cpp:9:1: error: stray '\' in program Checking for existence: D:\mara moldovan 9A\ppp\bin\Debug\ppp.exe ^ patratmagic0.cpp:9:1: error: stray '\' in program patratmagic0.cpp:9:1: error: stray '\' in program patratmagic0.cpp:9:1: error: stray '\' in program patratmagic0.cpp:9:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:10:1: error: stray '\' in program patratmagic0.cpp:11:1: error: stray '\' in program Executing: "C:\Program Files\CodeBlocks/cb_console_runner.exe" "D:\mara moldovan 9A\ppp\bin\Debug\ppp.exe" (in D:\mara moldovan 9A\ppp\.) ^ patratmagic0.cpp:11:1: error: stray '\' in program patratmagic0.cpp:11:1: error: stray '\' in program patratmagic0.cpp:1:1: error: expected unqualified-id before '--' token -------------- Build: Debug in ppp (compiler: GNU GCC Compiler)--------------- ^ patratmagic0.cpp:10:23: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:22: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:61: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:60: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:95: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:94: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:115: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:114: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:126: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:125: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:151: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:150: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:194: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:193: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:222: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:221: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:246: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:245: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:317: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:316: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:382: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:381: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:438: error: found ':' in nested-name-specifier, expected '::' Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^ patratmagic0.cpp:10:437: error: 'C' does not name a type Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Users\Statia1R\AppData\Local\Microsoft\WindowsApps;\;C:\OJI\FP\bin\i386-Win32 ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PatratMagic0 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.