You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[pressione o botao "copiar erro" no Portugol Studio e cole o erro aqui antes de enviar]
br.univali.ps.nucleo.ExcecaoAplicacao: java.lang.ArrayIndexOutOfBoundsException: -2
at br.univali.ps.nucleo.TratadorExcecoes.uncaughtException(TratadorExcecoes.java:145)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
at java.awt.EventDispatchThread.processException(EventDispatchThread.java:227)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:219)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -2
at javax.swing.text.AbstractDocument$BranchElement.getElement(AbstractDocument.java:2350)
at br.univali.ps.ui.rstautil.PortugolParser.adicionarErroAviso(PortugolParser.java:257)
at br.univali.ps.ui.rstautil.PortugolParser.notificarErrosAvisos(PortugolParser.java:168)
at br.univali.ps.ui.rstautil.PortugolParser.parse(PortugolParser.java:229)
at org.fife.ui.rsyntaxtextarea.ParserManager.actionPerformed(ParserManager.java:157)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
... 5 more
Código do Erro:
programa
{
funcao inicio()
{
cadeia nomes[5]
// Solicitar ao usuário a entrada de 5 nomes
para(cadeia i=0; i<5; i++){
escreva("Informe o nome ", i+1, ": ")
leia(nomes[i])
}
// Exibir a lista dos nomes
escreva("\nLista de nomes:\n")
para(cadeia i=0; i<5; i++){
escreva(nomes[i], "\n")
}
// Exibir os nomes na ordem inversa
escreva("\nNomes na ordem inversa:\n")
para(cadeia i=4; i>=0; i--){
escreva(nomes[i], "\n")
}
}
}
The text was updated successfully, but these errors were encountered:
[pressione o botao "copiar erro" no Portugol Studio e cole o erro aqui antes de enviar]
br.univali.ps.nucleo.ExcecaoAplicacao: java.lang.ArrayIndexOutOfBoundsException: -2
at br.univali.ps.nucleo.TratadorExcecoes.uncaughtException(TratadorExcecoes.java:145)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
at java.awt.EventDispatchThread.processException(EventDispatchThread.java:227)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:219)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -2
at javax.swing.text.AbstractDocument$BranchElement.getElement(AbstractDocument.java:2350)
at br.univali.ps.ui.rstautil.PortugolParser.adicionarErroAviso(PortugolParser.java:257)
at br.univali.ps.ui.rstautil.PortugolParser.notificarErrosAvisos(PortugolParser.java:168)
at br.univali.ps.ui.rstautil.PortugolParser.parse(PortugolParser.java:229)
at org.fife.ui.rsyntaxtextarea.ParserManager.actionPerformed(ParserManager.java:157)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
... 5 more
Código do Erro:
programa
{
}
The text was updated successfully, but these errors were encountered: